This document is archived and information here might be outdated.  Recommended version.


IPolygon2.QueryInteriorRingsEx Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

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
);
[C++]
HRESULT QueryInteriorRingsEx(
  IRing* exteriorRing,
  long numInteriorRingsRequested,
  IRing** interiorRings
);
[C++]

Parameters exteriorRing
exteriorRing is a parameter of type IRing numInteriorRingsRequested numInteriorRingsRequested is a parameter of type long interiorRings [out]
interiorRings is a parameter of type IRing

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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