EndpointAddress.Identity Egenskap

Definition

Hämtar identiteten för slutpunkten som används för att autentisera den.

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

Egenskapsvärde

För EndpointIdentity slutpunkten.

Exempel

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;

Kommentarer

Tillhandahåller en identitet som möjliggör autentisering av en slutpunkt av andra slutpunkter som utbyter meddelanden med den.

Gäller för