共用方式為


EndpointAddress.Identity 屬性

定義

取得用於驗證之端點的身分識別。

public:
 property System::ServiceModel::EndpointIdentity ^ Identity { System::ServiceModel::EndpointIdentity ^ get(); };
public System.ServiceModel.EndpointIdentity Identity { get; }
member this.Identity : System.ServiceModel.EndpointIdentity
Public ReadOnly Property Identity As EndpointIdentity

屬性值

EndpointIdentity

端點的 EndpointIdentity

範例

EndpointIdentity endpointIdentity =
    EndpointIdentity.CreateUpnIdentity(WindowsIdentity.GetCurrent().Name);
EndpointAddress endpointAddress = new EndpointAddress(
    new Uri
    ("http://localhost:8003/servicemodelsamples/service/incode/identity"),
    endpointIdentity, addressHeaders);

EndpointIdentity identity = endpointAddress.Identity;

備註

提供身分識別,以便讓其他端點與此端點交換訊息時啟用端點驗證。

適用於