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


IGPEnvironmentManager.FindEnvironment Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geoprocessing)  

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

Parameters Name [in] Name is a parameter of type BSTR env [out, retval]
env is a parameter of type IGPEnvironment

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