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


IGPUtilities.GetEnvironment Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geoprocessing)  

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,
  IGPEnvironment** ppEnvironment
);
[C++]

Parameters pEnvironments [in]
pEnvironments is a parameter of type IArray Name [in] Name is a parameter of type BSTR ppEnvironment [out, retval]
ppEnvironment is a parameter of type IGPEnvironment

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