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


IGPEnvironmentManager.AddEnvironment Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Geoprocessing)  

IGPEnvironmentManager.AddEnvironment Method

Adds the given geoprocessing environment to the environment manager.

[Visual Basic .NET]
Public Sub AddEnvironment ( _
    ByVal env As IGPEnvironment _
)
[C#]
public void AddEnvironment (
    IGPEnvironment env
);
[C++]
HRESULT AddEnvironment(
  IGPEnvironment* env
);
[C++]

Parameters env [in]
env is a parameter of type IGPEnvironment*

Product Availability

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

Remarks

The AddEnvironment methods adds a given environment to the environments array.

See Also

IGPEnvironmentManager Interface