This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGPEnvironmentManager Interface > IGPEnvironmentManager.FindEnvironment Method (ArcObjects .NET 10.5 SDK) |
Locates and returns the environment with the specified name.
[Visual Basic .NET] Public Function FindEnvironment ( _ ByVal Name As String _ ) As IGPEnvironment
[C#] public IGPEnvironment FindEnvironment ( string Name );
[C++]
HRESULT FindEnvironment(
BSTR Name,
IGPEnvironment** env
);
[C++]
Parameters Name [in] Name is a parameter of type BSTR env [out, retval]
env is a parameter of type IGPEnvironment
The FindEnvironment method returns the specified environment as string. Use this method to access a specific environment.
A code snippet on how to use this method is included below.