SecurityIdentifier SecurityIdentifier SecurityIdentifier SecurityIdentifier Constructors

Definition

Overloads

SecurityIdentifier(IntPtr) SecurityIdentifier(IntPtr) SecurityIdentifier(IntPtr) SecurityIdentifier(IntPtr)

Initializes a new instance of the SecurityIdentifier class by using an integer that represents the binary form of a security identifier (SID).

SecurityIdentifier(String) SecurityIdentifier(String) SecurityIdentifier(String) 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) SecurityIdentifier(Byte[], Int32) SecurityIdentifier(Byte[], Int32) 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) SecurityIdentifier(WellKnownSidType, SecurityIdentifier) SecurityIdentifier(WellKnownSidType, SecurityIdentifier) 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) SecurityIdentifier(IntPtr) SecurityIdentifier(IntPtr) SecurityIdentifier(IntPtr)

Initializes a new instance of the SecurityIdentifier class by using an integer that represents 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 IntPtr IntPtr IntPtr

An integer that represents the binary form of a SID.

Security

SecurityPermission
for the ability to access unmanaged code. Associated enumeration: UnmanagedCode

SecurityIdentifier(String) SecurityIdentifier(String) SecurityIdentifier(String) 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 String String String

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

SecurityIdentifier(Byte[], Int32) SecurityIdentifier(Byte[], Int32) SecurityIdentifier(Byte[], Int32) 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 Int32 Int32 Int32

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

SecurityIdentifier(WellKnownSidType, SecurityIdentifier) SecurityIdentifier(WellKnownSidType, SecurityIdentifier) SecurityIdentifier(WellKnownSidType, SecurityIdentifier) 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);
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 WellKnownSidType WellKnownSidType WellKnownSidType

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

Applies to