AFSecurityRightsToken Constructor (Guid, Int64, AFIdentity, Guid, AFSecurityItem, AFSecurityRights, AFSecurityRights)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Creates a new instance of the security rights token.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFSecurityRightsToken( Guid databaseId, long securityId, AFIdentity objectIdentity, Guid objectId, AFSecurityItem securityItem = AFSecurityItem.Default, AFSecurityRights addAdjustments = AFSecurityRights.None, AFSecurityRights removeAdjustments = AFSecurityRights.None )
Public Sub New ( databaseId As Guid, securityId As Long, objectIdentity As AFIdentity, objectId As Guid, Optional securityItem As AFSecurityItem = AFSecurityItem.Default, Optional addAdjustments As AFSecurityRights = AFSecurityRights.None, Optional removeAdjustments As AFSecurityRights = AFSecurityRights.None ) Dim databaseId As Guid Dim securityId As Long Dim objectIdentity As AFIdentity Dim objectId As Guid Dim securityItem As AFSecurityItem Dim addAdjustments As AFSecurityRights Dim removeAdjustments As AFSecurityRights Dim instance As New AFSecurityRightsToken(databaseId, securityId, objectIdentity, objectId, securityItem, addAdjustments, removeAdjustments)
public: AFSecurityRightsToken( Guid databaseId, long long securityId, AFIdentity objectIdentity, Guid objectId, AFSecurityItem securityItem = AFSecurityItem::Default, AFSecurityRights addAdjustments = AFSecurityRights::None, AFSecurityRights removeAdjustments = AFSecurityRights::None )
new : databaseId : Guid * securityId : int64 * objectIdentity : AFIdentity * objectId : Guid * ?securityItem : AFSecurityItem * ?addAdjustments : AFSecurityRights * ?removeAdjustments : AFSecurityRights (* Defaults: let _securityItem = defaultArg securityItem AFSecurityItem.Default let _addAdjustments = defaultArg addAdjustments AFSecurityRights.None let _removeAdjustments = defaultArg removeAdjustments AFSecurityRights.None *) -> AFSecurityRightsToken
Parameters
- databaseId
- Type: SystemGuid
Sets the value for the DatabaseId property. - securityId
- Type: SystemInt64
Sets the value for the SecurityId property. - objectIdentity
- Type: OSIsoft.AFAFIdentity
Sets the value for the ObjectIdentity property. - objectId
- Type: SystemGuid
Sets the value for the ObjectId property. - securityItem (Optional)
- Type: OSIsoft.AFAFSecurityItem
Sets the value for the SecurityItem property. - addAdjustments (Optional)
- Type: OSIsoft.AFAFSecurityRights
Sets the value for the AddAdjustments property. - removeAdjustments (Optional)
- Type: OSIsoft.AFAFSecurityRights
Sets the value for the RemoveAdjustments property.