ArcGIS Enterprise SDK
IPolygon2.QueryInteriorRingsEx Method
ArcGIS Developer Help

IPolygon2.QueryInteriorRingsEx Method

Returns an array of references to rings that are interior to the specified exterior ring, up to a maximum of the number requested.

[Visual Basic .NET]
Public Sub QueryInteriorRingsEx ( _
    ByVal exteriorRing As IRing, _
    ByVal numInteriorRingsRequested As Integer, _
    ByRef interiorRings As IRing _
)
[C#]
public void QueryInteriorRingsEx (
    IRing exteriorRing,
    int numInteriorRingsRequested,
    ref IRing interiorRings
);

Description

Returns an array of IRings containing up to numInteriorRingsRequested Interior Rings belonging to a specified input Exterior Ring.

Remarks

Note : That method only accepts an array of type IRing for interiorRings. Using an array of IRing2 won't work.

IPolygon2 QueryInteriorRingsEx Example

[C#]

Does not work in .NET. Use IPolygon4.get_InteriorRingBag instead.

See Also

IPolygon2 Interface