System.Security.Principal.SecurityIdentifier: Method Members

The methods of System.Security.Principal.SecurityIdentifier are listed below. For a list of all members, see the SecurityIdentifier Members list.

See Also: Inherited members from System.Security.Principal.IdentityReference

Public Methods

CompareTo(SecurityIdentifier) : int

Compares the current System.Security.Principal.SecurityIdentifier object with the specified System.Security.Principal.SecurityIdentifier object.

override
Equals(object) : bool

Returns a value that indicates whether this System.Security.Principal.SecurityIdentifier object is equal to a specified object.

Equals(SecurityIdentifier) : bool

Indicates whether the specified System.Security.Principal.SecurityIdentifier object is equal to the current System.Security.Principal.SecurityIdentifier object.

GetBinaryForm(byte[], int)

Copies the binary representation of the specified security identifier (SID) represented by the System.Security.Principal.SecurityIdentifier class to a byte array.

override
GetHashCode() : int

Serves as a hash function for the current System.Security.Principal.SecurityIdentifier object. The SecurityIdentifier.GetHashCode method is suitable for hashing algorithms and data structures like a hash table.

IsAccountSid() : bool

Returns a value that indicates whether the security identifier (SID) represented by this System.Security.Principal.SecurityIdentifier object is a valid Windows account SID.

IsEqualDomainSid(SecurityIdentifier) : bool

Returns a value that indicates whether the security identifier (SID) represented by this System.Security.Principal.SecurityIdentifier object is from the same domain as the specified SID.

override
IsValidTargetType(Type) : bool

Returns a value that indicates whether the specified type is a valid translation type for the System.Security.Principal.SecurityIdentifier class.

IsWellKnown(WellKnownSidType) : bool

Returns a value that indicates whether the System.Security.Principal.SecurityIdentifier object matches the specified well known security identifier (SID) type.

override
ToString() : string

Returns the security identifier (SID), in Security Descriptor Definition Language (SDDL) format, for the account represented by the System.Security.Principal.SecurityIdentifier object. An example of the SDDL format is S-1-5-9.

override
Translate(Type) : IdentityReference

Translates the account name represented by the System.Security.Principal.SecurityIdentifier object into another System.Security.Principal.IdentityReference-derived type.