|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGPExtent Interface > IGPExtent.GetExtent Method (ArcObjects .NET 10.4 SDK) | 
Gets the type and values of extent.
[Visual Basic .NET] Public Function GetExtent ( _ ByRef envType As esriGPExtentEnum _ ) As IEnvelope
[C#] public IEnvelope GetExtent ( ref esriGPExtentEnum envType );
[C++]
HRESULT GetExtent(
  esriGPExtentEnum* envType,
  IEnvelope** Extent
);
[C++]
Parameters envType [out]
envType is a parameter of type esriGPExtentEnum Extent [out, retval]
Extent is a parameter of type IEnvelope