Share via


S4UClient.UpnLogon 方法

Creates an impersonate-capable WindowsIdentity from a Kerberos unique principal name (UPN) by using the local WindowsTokenService.

命名空间: Microsoft.IdentityModel.WindowsTokenService
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)

用法

    Dim upn As String
Dim returnValue As WindowsIdentity

returnValue = S4UClient.UpnLogon(upn)

语法

声明
Public Shared Function UpnLogon ( _
    upn As String _
) As WindowsIdentity
public static WindowsIdentity UpnLogon (
    string upn
)
public:
static WindowsIdentity^ UpnLogon (
    String^ upn
)
public static WindowsIdentity UpnLogon (
    String upn
)
public static function UpnLogon (
    upn : String
) : WindowsIdentity

参数

  • upn
    The Kerberos unique principal name (UPN) of the windows identity desired.

返回值

Returns WindowsIdentity.

线程安全

此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。

平台

开发平台

Windows Server 2003, Windows Vista

Target Platforms

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

请参见

参考

S4UClient 类
S4UClient 成员
Microsoft.IdentityModel.WindowsTokenService 命名空间