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

AF SDK Reference

AFSecurity.SetOwner Method (NTAccount)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSecurity.SetOwner Method (NTAccount)
Used to take ownership of the AFObject that is associated with this AFSecurity.

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

Syntax

public void SetOwner(
	NTAccount account
)
Public Sub SetOwner ( 
	account As NTAccount
)

Dim instance As AFSecurity
Dim account As NTAccount

instance.SetOwner(account)
public:
void SetOwner(
	NTAccount^ account
)
member SetOwner : 
        account : NTAccount -> unit 

Parameters

account
Type: System.Security.PrincipalNTAccount
The NTAccount that will be the new owner of the AFObject associated with this security. If is specified, then the account for the current user is used.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9

See Also

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