UpnEndpointIdentity 建構函式

定義

初始化 UpnEndpointIdentity 類別的新執行個體。Initializes a new instance of the UpnEndpointIdentity class.

多載

UpnEndpointIdentity(Claim)

從宣告初始化 UpnEndpointIdentity 類別的新執行個體。Initializes a new instance of the UpnEndpointIdentity class from a claim.

UpnEndpointIdentity(String)

初始化 UpnEndpointIdentity 類別的新執行個體。Initializes a new instance of the UpnEndpointIdentity class.

UpnEndpointIdentity(Claim)

從宣告初始化 UpnEndpointIdentity 類別的新執行個體。Initializes a new instance of the UpnEndpointIdentity class from a claim.

public:
 UpnEndpointIdentity(System::IdentityModel::Claims::Claim ^ identity);
public UpnEndpointIdentity (System.IdentityModel.Claims.Claim identity);
new System.ServiceModel.UpnEndpointIdentity : System.IdentityModel.Claims.Claim -> System.ServiceModel.UpnEndpointIdentity
Public Sub New (identity As Claim)

參數

identity
Claim

ClaimThe Claim.

例外狀況

identitynullidentity is null.

identity 的宣告類型不是 UpnThe claim type of identity is not Upn.

備註

這個方法會 Initialize 使用 identity 做為輸入參數來呼叫。This method calls Initialize using identity as the input parameter.

適用於

UpnEndpointIdentity(String)

初始化 UpnEndpointIdentity 類別的新執行個體。Initializes a new instance of the UpnEndpointIdentity class.

public:
 UpnEndpointIdentity(System::String ^ upnName);
public UpnEndpointIdentity (string upnName);
new System.ServiceModel.UpnEndpointIdentity : string -> System.ServiceModel.UpnEndpointIdentity
Public Sub New (upnName As String)

參數

upnName
String

UPN 名稱。The UPN name.

例外狀況

upnNamenullupnName is null.

upnName 的宣告類型不是 UpnThe claim type of upnName is not Upn.

備註

這個方法會從建立宣告 upnName ,然後 Initialize 使用該宣告做為輸入參數來呼叫。This method creates a claim from upnName and then calls Initialize using that claim as the input parameter.

適用於