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

AF SDK Reference

AFActiveDirectoryProperties.AccountName Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFActiveDirectoryProperties.AccountName Property
The account name used to access Active Directory from the server.

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

Syntax

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

Dim instance As AFActiveDirectoryProperties
Dim value As String

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

Property Value

Type: String
Returns the account name used to access Active Directory from the server.

Remarks

Accessing the information in active directory is controlled by security. This property specifies the account that the server uses when accessing Active Directory. Use the SetAccount(String, SecureString) method to set the value of this property. If not specified, then the account that the server is running under is used. You only need to specify this property if the account that the server is running under does not have access to Active Directory.
Important note Important
If the ImpersonateUser property is set to , then this property setting is not used.

Version Information

AFSDK


See Also

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