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.