IEnvironmentManager Interface

Provides access to environments.

Members

Name Description
Method AddEnvironment Adds an environment.
Method GetEnvironment Retrieves an environment.

IEnvironmentManager.AddEnvironment Method

Adds an environment.

Public Sub AddEnvironment ( _
    ByVal pGuid As UID, _
    ByVal pUnk As Object _
)
public void AddEnvironment (
    UID pGuid,
    object pUnk
);

IEnvironmentManager.GetEnvironment Method

Retrieves an environment.

Public Function GetEnvironment ( _
    ByVal pGuid As UID _
) As Object
public object GetEnvironment (
    UID pGuid
);
public IServerEnvironment3 GetServerEnvironment()

{

  UID uid = new UIDClass();

  uid.Value = "{32D4C328-E473-4615-922C-63C108F55E60}";



  //use activator to cocreate singleton

  Type t = Type.GetTypeFromProgID("esriSystem.EnvironmentManager");

  System.Object obj = Activator.CreateInstance(t);

  IEnvironmentManager environmentManager = obj as IEnvironmentManager;

  return (environmentManager.GetEnvironment(uid) as IServerEnvironment3);

}

Classes that implement IEnvironmentManager

Classes Description
EnvironmentManager Singleton object that manages different environments (collections of configuration information).

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close