AFConnectionInfo.AccountName Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: StringThe account name of the PI AF Server for this PISystem is executing under.
| 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.