共用方式為


WindowsClaimsPrincipal 類別

The T:Microsoft.IdentityModel.Claims.WindowsClaimsPrincipal class extends the T:System.Security.Principal.WindowsPrincipal to carry T:Microsoft.IdentityModel.Claims.Claim information in addition to the identity information draw from Windows security tokens.

命名空間: Microsoft.IdentityModel.Claims
組件: Microsoft.IdentityModel (在 microsoft.identitymodel.dll 中)

使用方式

    Dim instance As WindowsClaimsPrincipal

語法

'宣告
<SerializableAttribute> _
Public Class WindowsClaimsPrincipal
    Inherits WindowsPrincipal
    Implements IClaimsPrincipal, IPrincipal, IDisposable
[SerializableAttribute] 
public class WindowsClaimsPrincipal : WindowsPrincipal, IClaimsPrincipal, IPrincipal, IDisposable
[SerializableAttribute] 
public ref class WindowsClaimsPrincipal : public WindowsPrincipal, IClaimsPrincipal, IPrincipal, IDisposable
/** @attribute SerializableAttribute() */ 
public class WindowsClaimsPrincipal extends WindowsPrincipal implements IClaimsPrincipal, IPrincipal, 
    IDisposable
SerializableAttribute 
public class WindowsClaimsPrincipal extends WindowsPrincipal implements IClaimsPrincipal, IPrincipal, 
    IDisposable

備註

In the claims model multiple users or claims-based identities can be party to a single action. This class extends the T:System.Security.Principal.WindowsPrincipal class to enable a Windows execution context to carry multiple claims-based identities (T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity). T:Microsoft.IdentityModel.Claims.WindowsClaimsPrincipal exposes a collection of identities, each of which implements IClaimsIdentity. In a common case, there will be a single issuer and a single token and the identities collection will only have one element. However, it’s possible in advanced scenarios for a relying party to ask (via policy) for more than one security token, potentially from different issuers.

繼承階層

System.Object
   System.Security.Principal.WindowsPrincipal
    Microsoft.IdentityModel.Claims.WindowsClaimsPrincipal

執行緒安全

任何這個類型的公用靜態 (在 Visual Basic 中為 共用) 成員都具備執行緒安全。不保證任何執行個體成員都具備執行緒安全。

平台

開發平台

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

請參閱

參考

WindowsClaimsPrincipal 成員
Microsoft.IdentityModel.Claims 命名空間