This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatabaseConnectionInfo3 Interface > IDatabaseConnectionInfo3.DisconnectUser Method (ArcObjects .NET 10.4 SDK) |
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.