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

AF SDK Reference

AFSecurityRightsToken Structure

  • Last UpdatedNov 18, 2025
  • 5 minute read
AFSecurityRightsToken Structure
A security rights token is used to check security for an object.

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

Syntax

[SerializableAttribute]
public struct AFSecurityRightsToken : IEquatable<AFSecurityRightsToken>
<SerializableAttribute>
Public Structure AFSecurityRightsToken
	Implements IEquatable(Of AFSecurityRightsToken)

Dim instance As AFSecurityRightsToken
[SerializableAttribute]
public value class AFSecurityRightsToken : IEquatable<AFSecurityRightsToken>
[<SealedAttribute>]
[<SerializableAttribute>]
type AFSecurityRightsToken =  
    struct
        interface IEquatable<AFSecurityRightsToken>
    end

The AFSecurityRightsToken type exposes the following members.

Constructors

Properties

  NameDescription
Public property
AddAdjustments
The security rights adjustment to be added to the base security rights for the instance of the object represented by this token.
Public property
DatabaseId
The ID for the AFDatabase where the object is saved. This will be Empty for a system-level object.
Public property
ObjectId
The ID of the object represented by this token. This value is used as the key in the dictionary returned from the CheckSecurity(PISystem, WindowsIdentity, IListAFSecurityRightsToken) method and does not have to be the ID of the actual object.
Public property
ObjectIdentity
The Identity of the object represented by this token.
Public property
RemoveAdjustments
The security rights adjustment to be removed to the base security rights for the instance of the object represented by this token.
Public property
SecurityId
The SecurityId of the object represented by this token.
Public property
SecurityItem
The security item represented by this token. If Default, then it represents the security for the object. Otherwise, it represents the security for a collection of the object.
Public property
SecurityOwnerId
The security owner identifier representing the owner of the object represented by this token. The GetUserId(PISystem, String) method can be used to set the value for this property. If this property is not set, then the security for the owner security identity will not be evaluated.

Methods

  NameDescription
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ValueTypeEquals(Object).)
Public method
Equals(AFSecurityRightsToken)
Indicates whether the current object is equal to another object of the same type.
Public method
GetHashCode
Gets the hash code for this instance of the object which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
ToString
Returns a String that represents the current object.
(Overrides ValueTypeToString.)

Operators

  NameDescription
Public operatorStatic member
Equality
The equality operator (==) compares its operands to determine if they are equal.
Public operatorStatic member
Inequality
The inequality operator (!=) compares its operands to determine if they are not equal.

Remarks

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

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