System.Security.Principal 命名空間

定義主體物件,表示執行程式碼所在的安全性內容。 如需詳細資訊,請參閱角色型安全性

類別

GenericIdentity

代表泛型使用者。

GenericPrincipal

代表泛型主體。

IdentityNotMappedException

代表主體的例外狀況,其身分識別無法對應至已知的身分識別。

IdentityReference

表示識別 (Identity),且為 NTAccountSecurityIdentifier 類別的基底類別。 這個類別不提供公用建構函式 (Constructor),因此無法繼承。

IdentityReferenceCollection

代表 IdentityReference 物件的集合,並提供將多組 IdentityReference 衍生物件轉換成 IdentityReference 衍生型別的方法。

NTAccount

代表使用者或群組帳戶。

SecurityIdentifier

代表安全識別項 (SID),並為 SID 提供封送處理 (Marshaling) 和比較作業。

WindowsIdentity

表示 Windows 使用者。

WindowsImpersonationContext

表示模擬作業前的 Windows 使用者。

WindowsPrincipal

可讓程式碼檢查 Windows 使用者的 Windows 群組成員資格。

介面

IIdentity

定義身分識別物件的基本功能。

IPrincipal

定義主體物件的基本功能。

列舉

PrincipalPolicy

指定應如何為應用程式網域建立 Principal 和 Identity 物件。 預設為 UnauthenticatedPrincipal

TokenAccessLevels

定義與此存取權杖相關聯的使用者帳戶權限。

TokenImpersonationLevel

定義安全性模擬等級。 安全性模擬等級會控管伺服器處理序可代表用戶端處理序的程度。

WellKnownSidType

定義常用的安全識別項 (SID) 集合。

WindowsAccountType

指定所使用的 Windows 帳戶類型。

WindowsBuiltInRole

指定與 IsInRole(String) 搭配使用的通用角色。