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

IGPEnvironmentManager.AddEnvironment 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.AddEnvironment Method
ArcGIS Developer Help

IGPEnvironmentManager.AddEnvironment Method

Adds the given geoprocessing environment to the environment manager.

[Visual Basic .NET]
Public Sub AddEnvironment ( _
    ByVal env As IGPEnvironment _
public void AddEnvironment (
    IGPEnvironment env
HRESULT AddEnvironment(
  IGPEnvironment* env
env [in]

env is a parameter of type IGPEnvironment*

Product Availability

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


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

See Also

IGPEnvironmentManager Interface