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)

Использование

Visual Basic
Dim instance As WindowsClaimsPrincipal

Синтаксис

Visual Basic
<SerializableAttribute> _
Public Class WindowsClaimsPrincipal
		Inherits WindowsPrincipal
		Implements IClaimsPrincipal, IPrincipal, IDisposable
C#
[SerializableAttribute] 
public class WindowsClaimsPrincipal : WindowsPrincipal, IClaimsPrincipal, IPrincipal, IDisposable
C++
[SerializableAttribute] 
public ref class WindowsClaimsPrincipal : public WindowsPrincipal, IClaimsPrincipal, IPrincipal, IDisposable
J#
/** @attribute SerializableAttribute() */ 
public class WindowsClaimsPrincipal extends WindowsPrincipal implements IClaimsPrincipal, IPrincipal, 
		IDisposable
JScript
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

Безопасность потоков

Любые открытые статические члены (Shared в Visual Basic) этого типа являются поточно-ориентированными.Любые члены экземпляров не являются гарантированно поточно-ориентированными.

Платформы

Платформа разработки

Windows Server 2003, Windows Vista

Target Platforms

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

См. также