SecurityIdentifier
Represents a security identifier (SID) and provides marshaling and comparison operations for SIDs.
Returns the maximum size, in bytes, of the binary representation of the security identifier.
Returns the minimum size, in bytes, of the binary representation of the security identifier.
Returns the account domain security identifier (SID) portion from the SID represented by the SecurityIdentifier object if the SID represents a Windows account SID. If the SID does not represent a Windows account SID, this property returns null.
Returns the length, in bytes, of the security identifier (SID) represented by the SecurityIdentifier object.
Initializes a new instance of the SecurityIdentifier class by using a specified binary representation of a security identifier (SID).
Initializes a new instance of the SecurityIdentifier class by using an integer that represents the binary form of a security identifier (SID).
Initializes a new instance of the SecurityIdentifier class by using the specified well known security identifier (SID) type and domain SID.
Initializes a new instance of the SecurityIdentifier class by using the specified security identifier (SID) in Security Descriptor Definition Language (SDDL) format.
Compares two SecurityIdentifier objects to determine whether they are equal. They are considered equal if they have the same canonical representation as the one returned by the Value property or if they are both null.
Compares two SecurityIdentifier objects to determine whether they are not equal. They are considered not equal if they have different canonical name representations than the one returned by the Value property or if one of the objects is null and the other is not.
Compares the current SecurityIdentifier object with the specified SecurityIdentifier object.
Indicates whether the specified SecurityIdentifier object is equal to the current SecurityIdentifier object.
Copies the binary representation of the specified security identifier (SID) represented by the SecurityIdentifier class to a byte array.
Returns a value that indicates whether the security identifier (SID) represented by this SecurityIdentifier object is a valid Windows account SID.
Returns a value that indicates whether the security identifier (SID) represented by this SecurityIdentifier object is from the same domain as the specified SID.
Returns a value that indicates whether the SecurityIdentifier object matches the specified well known security identifier (SID) type.