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

AF SDK Reference

AFSecurityRightsToken Constructor (Guid, Int64, AFIdentity, Guid, AFSecurityItem, AFSecurityRights, AFSecurityRights)

AFSecurityRightsToken Constructor (Guid, Int64, AFIdentity, Guid, AFSecurityItem, AFSecurityRights, AFSecurityRights)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSecurityRightsToken Constructor (Guid, Int64, AFIdentity, Guid, AFSecurityItem, AFSecurityRights, AFSecurityRights)
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.

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, 2.8.5, 2.8, 2.7.5, 2.7

See Also

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