ArcGIS Enterprise SDK
IPolygon.QueryExteriorRings Method
ArcGIS Developer Help

IPolygon.QueryExteriorRings Method

Populates an array with references to all exterior rings. This method does not marshall correctly out-of-proc. Use QueryExteriorRingsEx on the IPolygon2 interface instead.

[Visual Basic .NET]
Public Sub QueryExteriorRings ( _
    ByRef exteriorRings As IRing _
)
[C#]
public void QueryExteriorRings (
    ref IRing exteriorRings
);

Description

Returns an array of IRings containing all of the Exterior Rings in the Polygon.  Whenever possible, IPolygon2::QueryExteriorRingsEx should be used instead to ensure proper functionality and better control of the returned array.

Remarks

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

IPolygon QueryExteriorRings Example

[C#]

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

See Also

IPolygon Interface