Méthode WindowsClaimsIdentity.CreateFromUpn (String, String, Boolean, String)
Initializes an instance of T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity.
Espace de noms: Microsoft.IdentityModel.Claims
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)
Utilisation
Dim upn As String Dim authenticationType As String Dim useWindowsTokenService As Boolean Dim issuerName As String Dim returnValue As WindowsClaimsIdentity returnValue = WindowsClaimsIdentity.CreateFromUpn(upn, authenticationType, useWindowsTokenService, issuerName)
Syntaxe
'Déclaration
Public Shared Function CreateFromUpn ( _
upn As String, _
authenticationType As String, _
useWindowsTokenService As Boolean, _
issuerName As String _
) As WindowsClaimsIdentity
public static WindowsClaimsIdentity CreateFromUpn (
string upn,
string authenticationType,
bool useWindowsTokenService,
string issuerName
)
public:
static WindowsClaimsIdentity^ CreateFromUpn (
String^ upn,
String^ authenticationType,
bool useWindowsTokenService,
String^ issuerName
)
public static WindowsClaimsIdentity CreateFromUpn (
String upn,
String authenticationType,
boolean useWindowsTokenService,
String issuerName
)
public static function CreateFromUpn (
upn : String,
authenticationType : String,
useWindowsTokenService : boolean,
issuerName : String
) : WindowsClaimsIdentity
Paramètres
- upn
The Kerberos User Principal Name (UPN) of the user which this T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity represents.
- authenticationType
The type of authentication used.
- useWindowsTokenService
A boolean flag indicating whether the Windows Token Service is to be used for this operation.
- issuerName
A string indicating the issuer name for the claims.
Exceptions
Type d'exception | Condition |
---|
Remarques
If configured, the Windows Token Service will be utilized to ensure that this T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity allows impersonation.
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 WindowsClaimsIdentity
Membres WindowsClaimsIdentity
Espace de noms Microsoft.IdentityModel.Claims