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


IGPExtent.SetExtent Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geoprocessing)  

IGPExtent.SetExtent Method

Sets the type and values of extent.

[Visual Basic .NET]
Public Sub SetExtent ( _
    ByVal envType As esriGPExtentEnum, _
    [ByRef extentProvider As Object], _
    [ByRef snapRasterData As Object] _
)
[C#]
public void SetExtent (
    esriGPExtentEnum envType,
    ref object extentProvider,
    ref object snapRasterData
);
[C#]

Optional Values

extentProvider   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
snapRasterData   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT SetExtent(
  esriGPExtentEnum envType,
  VARIANT* extentProvider,
  VARIANT* snapRasterData
);
[C++]

Parameters envType [in]
envType is a parameter of type esriGPExtentEnum extentProvider [optional] extentProvider is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. snapRasterData [optional] snapRasterData is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.

Product Availability

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

See Also

IGPExtent Interface