This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGPUtilities Interface > IGPUtilities.GetEnvironment Method (ArcObjects .NET 10.4 SDK) |
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
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.