|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUserInfo
Provides access to members describing a user connected to a database.
Returns information about the Geodatabase user.
The users name and its corresponding sessionID can used to disconnect the particular user with the IDatabaseConnectionInfo3.DisconnectUser method.
Additional information such as the time the user connected to the database and the computer from which they are connected is also available.
ClientName returns the name of the computer that is connected to the workspace.
ConnectionTime returns the time the connection was made to the workspace in database time.
IsDirectConnection is used to determine the style of connection. Returning True would indicate that the load was on the client side (Direct Connection) while returning False would indicate that the load was on the server side (Application Connection)
IsOwnConnection indicates if the IUserInfo references the connection made by the user.
Name returns the user name as a string.
SessionID returns the identifier of the connection. The sessionID can be used by a Geodatabase administrator with IDatabaseConnectionInfo3 to disconnect the associated connection.
Method Summary | |
---|---|
String |
getClientName()
The name of the connected computer |
Object |
getConnectionTime()
The time that the connection was made |
String |
getName()
The name of the connected user. |
int |
getSessionID()
The unique ID of the connection. |
boolean |
isDirectConnection()
The type of connection. |
boolean |
isOwnConnection()
Whether this connection is the current users' connection. |
Method Detail |
---|
int getSessionID() throws IOException, AutomationException
The Session ID is the unique identifier generated by the Enterprise Geodatabase for every connection.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getName() throws IOException, AutomationException
The User name used to authenticate the connection to the Enterprise Geodatabase.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getClientName() throws IOException, AutomationException
The name of the client machine where the connection to the Enterprise Geodatabase was made from.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getConnectionTime() throws IOException, AutomationException
Server time when the connection was established.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isDirectConnection() throws IOException, AutomationException
Boolean property specifying if the connection is a direct connection.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isOwnConnection() throws IOException, AutomationException
Boolean property specifying if the connection is the same connection that was used for the get_ConnectedUsers call.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |