SecurityIdentifier 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SecurityIdentifier 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| SecurityIdentifier(IntPtr) |
透過使用指向安全識別碼(SID)二進位形式的指標來初始化該 SecurityIdentifier 類別的新實例。 |
| SecurityIdentifier(String) |
透過使用指定的安全識別碼(SID)以安全描述符定義語言(SDDL)格式初始化該類別的新 SecurityIdentifier 實例。 |
| SecurityIdentifier(Byte[], Int32) |
透過使用指定的二進位表示安全識別碼(SID)初始化該類別的新實例 SecurityIdentifier 。 |
| SecurityIdentifier(WellKnownSidType, SecurityIdentifier) |
透過使用指定的知名安全識別碼(SID)類型與網域 SID 初始化該 SecurityIdentifier 類別的新實例。 |
SecurityIdentifier(IntPtr)
透過使用指向安全識別碼(SID)二進位形式的指標來初始化該 SecurityIdentifier 類別的新實例。
public:
SecurityIdentifier(IntPtr binaryForm);
public SecurityIdentifier(IntPtr binaryForm);
new System.Security.Principal.SecurityIdentifier : nativeint -> System.Security.Principal.SecurityIdentifier
Public Sub New (binaryForm As IntPtr)
參數
- binaryForm
-
IntPtr
nativeint
指向 SID 二進位形式的指標。
適用於
SecurityIdentifier(String)
透過使用指定的安全識別碼(SID)以安全描述符定義語言(SDDL)格式初始化該類別的新 SecurityIdentifier 實例。
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)
參數
- sddlForm
- String
用於建立 SecurityIdentifier 物件的 SID 的 SDDL 字串。
適用於
SecurityIdentifier(Byte[], Int32)
透過使用指定的二進位表示安全識別碼(SID)初始化該類別的新實例 SecurityIdentifier 。
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)
參數
- binaryForm
- Byte[]
代表 SID 的位元組陣列。
- offset
- Int32
用來作為起始索引的 binaryForm位元組偏移量。
適用於
SecurityIdentifier(WellKnownSidType, SecurityIdentifier)
透過使用指定的知名安全識別碼(SID)類型與網域 SID 初始化該 SecurityIdentifier 類別的新實例。
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)
參數
- sidType
- WellKnownSidType
其中一個列舉值。 此值不得為 LogonIdsSid。
- domainSid
- SecurityIdentifier
網域 SID。 此值適用於以下 WellKnownSidType 數值。 其他值會 WellKnownSidType 忽略此參數。