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


IPolygon2.QueryExteriorRingsEx Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IPolygon2 Interface > IPolygon2.QueryExteriorRingsEx Method
ArcGIS Developer Help

IPolygon2.QueryExteriorRingsEx Method

Returns an array of references to exterior rings, up to a maximum of the number requested.

[Visual Basic .NET]
Public Sub QueryExteriorRingsEx ( _
    ByVal numExteriorRingsRequested As Integer, _
    ByRef exteriorRings As IRing _
)
[C#]
public void QueryExteriorRingsEx (
    int numExteriorRingsRequested,
    ref IRing exteriorRings
);
[C++]
HRESULT QueryExteriorRingsEx(
  long numExteriorRingsRequested,
  IRing** exteriorRings
);
[C++]
Parameters
numExteriorRingsRequested 

numExteriorRingsRequested is a parameter of type long exteriorRings [out]
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 up to numExteriorRingsRequested of the Exterior Rings in the Polygon.

Remarks

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

IPolygon2 QueryExteriorRingsEx Example

[C#]

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

See Also

IPolygon2 Interface