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


IPolygon.QueryExteriorRings Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

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
);
[C++]
HRESULT QueryExteriorRings(
  IRing** exteriorRings
);
[C++]

Parameters exteriorRings
exteriorRings 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 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