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 中為 共用) 成員都具備執行緒安全。不保證任何執行個體成員都具備執行緒安全。
平台
開發平台
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
請參閱
參考
S4UClient 類別
S4UClient 成員
Microsoft.IdentityModel.WindowsTokenService 命名空間