Specifies the type of a security identifier (SID).

A security identifier (SID) is a unique value of variable length used to identify a security principal or security group. A SID can be assigned to any security principal or security group when the principal or group is created.

Note This enumeration is used in conjunction with the SecurityIdentifier class. For more information, see SecurityIdentifier.

Syntax

public enum SidType

Members

Member Description
Unknown The type of the SID is unknown.
User The SID identifies a user.
Group The SID identifies a security group.
Domain The SID identifies a Windows domain.
Alias The SID identifies an alias.
WellKnownGroup The SID identifies a built-in well-known group.
DeletedAccount The SID identifies a deleted account.
Invalid The SID is invalid.
Computer The SID identifies a computer.

Remarks

The SidType enumeration is used to describe the type of a security principal or security group. When you create a SecurityIdentifier object, you can specify the type of SID using this enumeration. This information can be useful when you need to perform operations based on the type of SID, such as checking if a SID represents a user, group, or domain.

For example, you can use the IsAccountSid method to determine if a SID represents a user or a group. You can also use the AccountDomainSid property to retrieve the SID of the domain to which the account belongs.

Requirements

Assembly

mscorlib.dll

Namespace

System.Security.Principal

Framework

.NET Framework 1.0