Share via


Saml2SecurityTokenHandler.CreateWindowsIdentity(String) 方法

定義

指定的使用者主要名稱 (UPN),建立 WindowsIdentity 物件。

protected:
 virtual System::Security::Principal::WindowsIdentity ^ CreateWindowsIdentity(System::String ^ upn);
protected virtual System.Security.Principal.WindowsIdentity CreateWindowsIdentity (string upn);
abstract member CreateWindowsIdentity : string -> System.Security.Principal.WindowsIdentity
override this.CreateWindowsIdentity : string -> System.Security.Principal.WindowsIdentity
Protected Overridable Function CreateWindowsIdentity (upn As String) As WindowsIdentity

參數

upn
String

要用來建立識別的 UPN。

傳回

已建立的 Windows 識別。

例外狀況

upnnull 或空字串。

適用於