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


IDatabaseConnectionInfo.ConnectedUser Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatabaseConnectionInfo Interface > IDatabaseConnectionInfo.ConnectedUser Property
ArcGIS Developer Help

IDatabaseConnectionInfo.ConnectedUser Property

The name of the connected user. It may be different from the USER property in the workspace's connection properties.

[Visual Basic .NET]
Public ReadOnly Property ConnectedUser As String
[C#]
public string ConnectedUser {get;}
[C++]
HRESULT get_ConnectedUser(
  System.String* User
);
[C++]
Parameters
User [out, retval]

User is a parameter of type BSTR*

Product Availability

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

Remarks

If used with a Personal or File Geodatabase, the ConnectedUser property will return an empty string.

See Also

IDatabaseConnectionInfo Interface

.NET Samples

Timestamper class extension