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


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

IGPEnvironmentManager.FindEnvironment Method

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
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR

Product Availability

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

Remarks

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.

See Also

IGPEnvironmentManager Interface