Initializes an instance of T:Microsoft.IdentityModel.Claims.WindowsClaimsPrincipal.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim identity As WindowsIdentity
Dim issuerName As String
Dim returnValue As IClaimsPrincipal

returnValue = WindowsClaimsPrincipal.CreateFromWindowsIdentity(identity, issuerName)

Syntax

Visual Basic
Public Shared Function CreateFromWindowsIdentity ( _
		identity As WindowsIdentity, _
		issuerName As String _
) As IClaimsPrincipal
C#
public static IClaimsPrincipal CreateFromWindowsIdentity (
		WindowsIdentity identity,
		string issuerName
)
C++
public:
static IClaimsPrincipal^ CreateFromWindowsIdentity (
		WindowsIdentity^ identity, 
		String^ issuerName
)
J#
public static IClaimsPrincipal CreateFromWindowsIdentity (
		WindowsIdentity identity, 
		String issuerName
)
JScript
public static function CreateFromWindowsIdentity (
		identity : WindowsIdentity, 
		issuerName : String
) : IClaimsPrincipal

Parameters

identity

WindowsIdentity to draw user token from.

issuerName

The Windows issuer name to use.

Exceptions

Exception type Condition

Remarks

Checks for anonymous identities.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also