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


IPolygon.QueryInteriorRings Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

IPolygon.QueryInteriorRings Method

Populates an array with references to rings that are interior to the specified exterior ring. This method does not marshall correctly out-of-proc. Use QueryInteriorRingsEx on the IPolygon2 interface instead.

[Visual Basic .NET]
Public Sub QueryInteriorRings ( _
    ByVal exteriorRing As IRing, _
    ByRef interiorRings As IRing _
)
[C#]
public void QueryInteriorRings (
    IRing exteriorRing,
    ref IRing interiorRings
);
[C++]
HRESULT QueryInteriorRings(
  IRing* exteriorRing,
  IRing** interiorRings
);
[C++]

Parameters exteriorRing
exteriorRing is a parameter of type IRing interiorRings
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 all Interior Rings belonging to a specified input Exterior Ring.  Whenever possible, IPolygon2::QueryInteriorRingsEx should be used to ensure proper functionality and better control of the returned array.

Remarks

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

[C#]

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

See Also

IPolygon Interface