AFSecurity.SetOwner Method (ClaimsIdentity)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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( ClaimsIdentity identity )
Public Sub SetOwner ( identity As ClaimsIdentity ) Dim instance As AFSecurity Dim identity As ClaimsIdentity instance.SetOwner(identity)
public: void SetOwner( ClaimsIdentity^ identity )
member SetOwner : identity : ClaimsIdentity -> unit
Parameters
- identity
- Type: System.Security.ClaimsClaimsIdentity
The ClaimsIdentity 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.