SecurityIdentifier Constructors

Definition

Initializes a new instance of the SecurityIdentifier class.

Overloads

SecurityIdentifier(IntPtr)

Initializes a new instance of the SecurityIdentifier class by using a pointer to the binary form of a security identifier (SID).

SecurityIdentifier(String)

Initializes a new instance of the SecurityIdentifier class by using the specified security identifier (SID) in Security Descriptor Definition Language (SDDL) format.

SecurityIdentifier(Byte[], Int32)

Initializes a new instance of the SecurityIdentifier class by using a specified binary representation of a security identifier (SID).

SecurityIdentifier(WellKnownSidType, SecurityIdentifier)

Initializes a new instance of the SecurityIdentifier class by using the specified well known security identifier (SID) type and domain SID.

SecurityIdentifier(IntPtr)

Initializes a new instance of the SecurityIdentifier class by using a pointer to the binary form of a security identifier (SID).

public:
 SecurityIdentifier(IntPtr binaryForm);
public SecurityIdentifier (IntPtr binaryForm);
new System.Security.Principal.SecurityIdentifier : nativeint -> System.Security.Principal.SecurityIdentifier
Public Sub New (binaryForm As IntPtr)

Parameters

binaryForm
IntPtr

nativeint

A pointer to the binary form of a SID.

Applies to

SecurityIdentifier(String)

Initializes a new instance of the SecurityIdentifier class by using the specified security identifier (SID) in Security Descriptor Definition Language (SDDL) format.

public:
 SecurityIdentifier(System::String ^ sddlForm);
public SecurityIdentifier (string sddlForm);
new System.Security.Principal.SecurityIdentifier : string -> System.Security.Principal.SecurityIdentifier
Public Sub New (sddlForm As String)

Parameters

sddlForm
String

SDDL string for the SID used to create the SecurityIdentifier object.

Applies to

SecurityIdentifier(Byte[], Int32)

Initializes a new instance of the SecurityIdentifier class by using a specified binary representation of a security identifier (SID).

public:
 SecurityIdentifier(cli::array <System::Byte> ^ binaryForm, int offset);
public SecurityIdentifier (byte[] binaryForm, int offset);
new System.Security.Principal.SecurityIdentifier : byte[] * int -> System.Security.Principal.SecurityIdentifier
Public Sub New (binaryForm As Byte(), offset As Integer)

Parameters

binaryForm
Byte[]

The byte array that represents the SID.

offset
Int32

The byte offset to use as the starting index in binaryForm.

Applies to

SecurityIdentifier(WellKnownSidType, SecurityIdentifier)

Initializes a new instance of the SecurityIdentifier class by using the specified well known security identifier (SID) type and domain SID.

public:
 SecurityIdentifier(System::Security::Principal::WellKnownSidType sidType, System::Security::Principal::SecurityIdentifier ^ domainSid);
public SecurityIdentifier (System.Security.Principal.WellKnownSidType sidType, System.Security.Principal.SecurityIdentifier domainSid);
public SecurityIdentifier (System.Security.Principal.WellKnownSidType sidType, System.Security.Principal.SecurityIdentifier? domainSid);
new System.Security.Principal.SecurityIdentifier : System.Security.Principal.WellKnownSidType * System.Security.Principal.SecurityIdentifier -> System.Security.Principal.SecurityIdentifier
Public Sub New (sidType As WellKnownSidType, domainSid As SecurityIdentifier)

Parameters

sidType
WellKnownSidType

One of the enumeration values. This value must not be LogonIdsSid.

Applies to