Méthode ClaimsPrincipal.CreateFromIdentities (ClaimsIdentityCollection, String)
Creates a ClaimsPrincipal from a collection of identities.
Espace de noms: Microsoft.IdentityModel.Claims
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)
Utilisation
Dim identities As ClaimsIdentityCollection Dim windowsIssuerName As String Dim returnValue As IClaimsPrincipal returnValue = ClaimsPrincipal.CreateFromIdentities(identities, windowsIssuerName)
Syntaxe
'Déclaration
Public Shared Function CreateFromIdentities ( _
identities As ClaimsIdentityCollection, _
windowsIssuerName As String _
) As IClaimsPrincipal
public static IClaimsPrincipal CreateFromIdentities (
ClaimsIdentityCollection identities,
string windowsIssuerName
)
public:
static IClaimsPrincipal^ CreateFromIdentities (
ClaimsIdentityCollection^ identities,
String^ windowsIssuerName
)
public static IClaimsPrincipal CreateFromIdentities (
ClaimsIdentityCollection identities,
String windowsIssuerName
)
public static function CreateFromIdentities (
identities : ClaimsIdentityCollection,
windowsIssuerName : String
) : IClaimsPrincipal
Paramètres
- identities
The collection of identities.
- windowsIssuerName
The issuer name to use for Windows claims.
Valeur de retour
A claims-based principal.
Exceptions
Type d'exception | Condition |
---|
Cohérence de thread
Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.
Plateformes
Plateformes de développement
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
Voir aussi
Référence
Classe ClaimsPrincipal
Membres ClaimsPrincipal
Espace de noms Microsoft.IdentityModel.Claims