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

AF SDK Reference

AFConnectionInfo.AccountName Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFConnectionInfo.AccountName Property
This property is the account name that the PI AF Server for this PISystem is executing under.

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

Syntax

public string AccountName { get; set; }
Public Property AccountName As String
	Get
	Set

Dim instance As AFConnectionInfo
Dim value As String

value = instance.AccountName

instance.AccountName = value
public:
property String^ AccountName {
	String^ get ();
	void set (String^ value);
}
member AccountName : string with get, set

Property Value

Type: String
The account name of the PI AF Server for this PISystem is executing under.
Important note Important
This property can only be modified when disconnected from the AF Server and is not a connection to a server hosted by OSIsoft.

Remarks

This property is used to authenticate the connection to the PI AF Server. If this property is not set, then an attempt is made to determine the server's host name from the DNS and authenticate using the server's host name.

If the PISystem is part of a AFCollective, then this property can only be modified by editing the AFCollectiveMember settings.

Version Information

AFSDK


See Also

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