Creates a ClaimsPrincipal from a collection of identities.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim identities As ClaimsIdentityCollection
Dim windowsIssuerName As String
Dim returnValue As IClaimsPrincipal

returnValue = ClaimsPrincipal.CreateFromIdentities(identities, windowsIssuerName)

Syntax

Visual Basic
Public Shared Function CreateFromIdentities ( _
		identities As ClaimsIdentityCollection, _
		windowsIssuerName As String _
) As IClaimsPrincipal
C#
public static IClaimsPrincipal CreateFromIdentities (
		ClaimsIdentityCollection identities,
		string windowsIssuerName
)
C++
public:
static IClaimsPrincipal^ CreateFromIdentities (
		ClaimsIdentityCollection^ identities, 
		String^ windowsIssuerName
)
J#
public static IClaimsPrincipal CreateFromIdentities (
		ClaimsIdentityCollection identities, 
		String windowsIssuerName
)
JScript
public static function CreateFromIdentities (
		identities : ClaimsIdentityCollection, 
		windowsIssuerName : String
) : IClaimsPrincipal

Parameters

identities

The collection of identities.

windowsIssuerName

The issuer name to use for Windows claims.

Return Value

A claims-based principal.

Exceptions

Exception type Condition

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