Click or drag to resize
OSIsoft, LLC

PIServerCurrentUserName Property

Gets the user name of the person who is currently logged on to the PIServer server.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.6.195
Syntax
public string CurrentUserName { get; }

Property Value

Type: String
The user name of the person who is currently logged on to the PIServer server.
Remarks
If not connected to the PIServer, then accessing this property will NOT automatically connect to the server. When not connected, this property will return a string indicating that it is not currently connected to the server.
Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5
See Also
Enabling Operational Intelligence