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

IPolygon.QueryExteriorRings Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IPolygon Interface > 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 _
public void QueryExteriorRings (
    ref IRing exteriorRings
HRESULT QueryExteriorRings(
  IRing** exteriorRings

exteriorRings is a parameter of type IRing**

Product Availability

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


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.


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

IPolygon QueryExteriorRings Example


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

See Also

IPolygon Interface