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


IDatabaseConnectionInfo.ConnectedUser Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

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(
  BSTR* 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 (Code Files: TimestampClassExtension)

.NET Related Topics

Querying workspace properties