This document is archived and information here might be outdated. Recommended version. |
Disconnect a user connection to the database.
[Visual Basic .NET]
Public Sub DisconnectUser ( _
ByVal SessionID As Integer _
)
[C#]
public void DisconnectUser (
int SessionID
);
[C++]
HRESULT DisconnectUser(
long SessionID
);
[C++] Parameters SessionID [in]
SessionID is a parameter of type long
The DisconnectUser method will disconnect a user from the Enterprise Geodatabase based on Session ID. The Session ID can be retrieved from a IUserInfo object returned from the call to get_ConnectedUsers or from an IDatabaseLockInfo object returned from IDatabaseLocksInfo. You must be the Geodatabase Administrator to call this method.