This document is archived and information here might be outdated.  Recommended version.


IDatabaseConnectionInfo3.DisconnectUser Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatabaseConnectionInfo3 Interface > IDatabaseConnectionInfo3.DisconnectUser Method
ArcGIS Developer Help

IDatabaseConnectionInfo3.DisconnectUser Method

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

Product Availability

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

Description

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.

See Also

IDatabaseConnectionInfo3 Interface