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.CreateUpnIdentity(WindowsIdentity.GetCurrent().Name);
EndpointAddress endpointAddress = new EndpointAddress(
    new Uri
    ("http://localhost:8003/servicemodelsamples/service/incode/identity"),
    endpointIdentity, addressHeaders);

EndpointIdentity identity = endpointAddress.Identity;

注解

提供一个标识,与某个终结点交换消息的其他终结点可以使用该标识对该终结点进行身份验证。

适用于