Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

PISystem.CurrentUserName Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
PISystem.CurrentUserName Property
Gets the user name of the person who is currently logged on to the PISystem server.

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public string CurrentUserName { get; }
Public ReadOnly Property CurrentUserName As String
	Get

Dim instance As PISystem
Dim value As String

value = instance.CurrentUserName
public:
property String^ CurrentUserName {
	String^ get ();
}
member CurrentUserName : string with get

Property Value

Type: String
The user name of the person who is currently logged on to the PISystem server.

Remarks

If a network credential was used to connect to the PISystem server, then the user name associated with the credential is returned. Otherwise, the current user defined by the operating system is returned.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in