ArcObjects Library Reference  (Geometry)    

SetEmpty_Example

[Visual Basic 6.0]
' Use the SetEmpty to release memory for geometries. Private Function EmptyGeometry(pGeo As IGeometry) As Boolean pGeo.SetEmpty EmptyGeometry = pGeo.IsEmpty End Function

[C#]
private bool EmptyGeometry(IGeometry geometry)
{
  geometry.SetEmpty();
  return geometry.IsEmpty;
}

[Visual Basic .NET, C++]
No example is available for Visual Basic .NET or C++. To view a Visual Basic 6.0 or C# example, click the Language Filter button Language Filter in the upper-left corner of the page.