This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IPolygon Interface > IPolygon.QueryExteriorRings Method (ArcObjects .NET 10.5 SDK) |
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
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.
Does not work in .NET. Use IPolygon4.ExteriorRingBag instead.