com.esri.arcgis.system
Interface IServerEnvironment2

All Superinterfaces:
IServerEnvironment, Serializable
All Known Subinterfaces:
IServerEnvironment3
All Known Implementing Classes:
IServerEnvironment2Proxy

public interface IServerEnvironment2
extends IServerEnvironment, Serializable

Provides access to Server configuration information.

Description

The method of IServerEnvironment2 allows access to the IUserInfo interface to get the User and Roles of the current connection.

Product Availability

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


Method Summary
 IServerUserInfo getUserInfo()
          Retrieves information about current user.
 
Methods inherited from interface com.esri.arcgis.system.IServerEnvironment
getCurrentJobID, getJobDirectory, getJobTracker, getLog, getProperties
 

Method Detail

getUserInfo

IServerUserInfo getUserInfo()
                            throws IOException,
                                   AutomationException
Retrieves information about current user.

Product Availability

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

Returns:
A reference to a com.esri.arcgis.system.IServerUserInfo
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.