Compartir a través de


WindowsClaimsIdentity.CreateFromUpn (Método, (String, String, Boolean))

Initializes an instance of T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity.

Espacio de nombres: Microsoft.IdentityModel.Claims
Ensamblado: Microsoft.IdentityModel (en microsoft.identitymodel.dll)

Uso

    Dim upn As String
Dim authenticationType As String
Dim useWindowsTokenService As Boolean
Dim returnValue As WindowsClaimsIdentity

returnValue = WindowsClaimsIdentity.CreateFromUpn(upn, authenticationType, useWindowsTokenService)

Sintaxis

'Declaración
Public Shared Function CreateFromUpn ( _
    upn As String, _
    authenticationType As String, _
    useWindowsTokenService As Boolean _
) As WindowsClaimsIdentity
public static WindowsClaimsIdentity CreateFromUpn (
    string upn,
    string authenticationType,
    bool useWindowsTokenService
)
public:
static WindowsClaimsIdentity^ CreateFromUpn (
    String^ upn, 
    String^ authenticationType, 
    bool useWindowsTokenService
)
public static WindowsClaimsIdentity CreateFromUpn (
    String upn, 
    String authenticationType, 
    boolean useWindowsTokenService
)
public static function CreateFromUpn (
    upn : String, 
    authenticationType : String, 
    useWindowsTokenService : boolean
) : WindowsClaimsIdentity

Parámetros

  • 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.

Excepciones

Tipo de excepción Condición

Notas

If configured, the Windows Token Service will be utilized to ensure that this T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity allows impersonation.

Seguridad para subprocesos

Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para subprocesos.No se garantiza que los miembros de instancias sean seguros para subprocesos.

Plataformas

Plataformas de desarrollo

Windows Server 2003, Windows Vista

Target Platforms

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

Vea también

Referencia

WindowsClaimsIdentity (Clase)
WindowsClaimsIdentity (Miembros)
Microsoft.IdentityModel.Claims (Espacio de nombres)