SecurityIdentifier 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表安全識別項 (SID),並為 SID 提供封送處理 (Marshaling) 和比較作業。
public ref class SecurityIdentifier sealed : System::Security::Principal::IdentityReference, IComparable<System::Security::Principal::SecurityIdentifier ^>
public sealed class SecurityIdentifier : System.Security.Principal.IdentityReference, IComparable<System.Security.Principal.SecurityIdentifier>
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class SecurityIdentifier : System.Security.Principal.IdentityReference, IComparable<System.Security.Principal.SecurityIdentifier>
type SecurityIdentifier = class
inherit IdentityReference
interface IComparable<SecurityIdentifier>
[<System.Runtime.InteropServices.ComVisible(false)>]
type SecurityIdentifier = class
inherit IdentityReference
interface IComparable<SecurityIdentifier>
Public NotInheritable Class SecurityIdentifier
Inherits IdentityReference
Implements IComparable(Of SecurityIdentifier)
- 繼承
- 屬性
- 實作
Security |
使用指定的安全識別項 (SID) 二進位表示,初始化 SecurityIdentifier 類別的新執行個體。 |
Security |
使用安全性標識符二進位形式的指標, (SID) ,初始化 類別的新實例 SecurityIdentifier 。 |
Security |
使用安全性描述元定義語言 (SDDL) 格式的指定安全識別項 (SID),初始化 SecurityIdentifier 類別的新執行個體。 |
Security |
使用指定的已知安全識別項 (SID) 型別和網域 SID,初始化 SecurityIdentifier 類別的新執行個體。 |
Max |
傳回安全識別項之二進位表示的最大值,以位元組為單位。 |
Min |
傳回安全識別項之二進位表示的最小值,以位元組為單位。 |
Account |
如果 SID 代表 Windows 帳戶 SID,則傳回 SecurityIdentifier 物件所表示的 SID 之帳戶網域安全識別項 (SID) 部分。 如果 SID 不代表 Windows 帳戶 SID,則這個屬性會傳回 |
Binary |
傳回 SecurityIdentifier 物件所表示的安全識別項 (SID) 之長度,以位元組為單位。 |
Value |
傳回這個 SecurityIdentifier 物件所表示的安全識別項 (SID) 之大寫安全性描述元定義語言 (SDDL) 字串。 |
Equality(Security |
比較兩個 SecurityIdentifier 物件,判斷它們是否相等。 如果它們的正式名稱表示與 Value 屬性所傳回的相同,或兩者都是 |
Inequality(Security |
比較兩個 SecurityIdentifier 物件,判斷它們是否不相等。 如果它們的正式名稱表示與 Value 屬性所傳回的不同,或其中一個物件為 |
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, 6, 7, 8, 9, 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |