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


IGPUtilities.GetEnvironment Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGPUtilities Interface > IGPUtilities.GetEnvironment Method
ArcGIS Developer Help

IGPUtilities.GetEnvironment Method

Locates a geoprocessing environment with the given name in the given array.

[Visual Basic .NET]
Public Function GetEnvironment ( _
    ByVal pEnvironments As IArray, _
    ByVal Name As String _
) As IGPEnvironment
[C#]
public IGPEnvironment GetEnvironment (
    IArray pEnvironments,
    string Name
);
[C++]
HRESULT GetEnvironment(
  IArray* pEnvironments,
  BSTR Name
);
[C++]
Parameters
pEnvironments [in]

pEnvironments is a parameter of type IArray* Name [in]
Name is a parameter of type BSTR

Product Availability

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

Remarks

The GetEnvironment property provides access to any geoprocessing environments for an application or session.

Refer to the code sample to see how to use this property.

See Also

IGPUtilities Interface