EndpointAddress.Identity 属性

定义

获取用于验证终结点的标识。Gets the identity for the endpoint used to authenticate it.

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

终结点的 EndpointIdentityThe EndpointIdentity for the endpoint.

示例

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;

注解

提供一个标识,与某个终结点交换消息的其他终结点可以使用该标识对该终结点进行身份验证。Provides an identity that enables the authentication of an endpoint by other endpoints that exchange messages with it.

适用于