Locates a geoprocessing environment with the given name in the given array.
[Visual Basic 6.0] Function GetEnvironment(
ByVal pEnvironments As IArray, _
ByVal Name As String _
) As IGPEnvironment
[Visual Basic .NET] Public Function GetEnvironment ( _ ByVal pEnvironments As IArray, _ ByVal Name As String _ ) As IGPEnvironment
[C#] public IGPEnvironment GetEnvironment ( IArray pEnvironments, string Name );
[Java] public IGPEnvironment getEnvironment ( IArray pEnvironments, String Name ) throws IOException, AutomationException
[C++] HRESULT GetEnvironment( IArray* pEnvironments, BSTR Name, IGPEnvironment** ppEnvironment );
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.