Muokkaa

Jaa


IdentityVerifier.TryGetIdentity(EndpointAddress, EndpointIdentity) Method

Definition

Tries to create an identity from an endpoint.

public:
 abstract bool TryGetIdentity(System::ServiceModel::EndpointAddress ^ reference, [Runtime::InteropServices::Out] System::ServiceModel::EndpointIdentity ^ % identity);
public abstract bool TryGetIdentity (System.ServiceModel.EndpointAddress reference, out System.ServiceModel.EndpointIdentity identity);
abstract member TryGetIdentity : System.ServiceModel.EndpointAddress * EndpointIdentity -> bool
Public MustOverride Function TryGetIdentity (reference As EndpointAddress, ByRef identity As EndpointIdentity) As Boolean

Parameters

reference
EndpointAddress

The EndpointAddress to use for creating the identity.

identity
EndpointIdentity

The EndpointIdentity that is returned.

Returns

true if the identity is returned; otherwise, false. The default is false.

Remarks

The default IdentityVerifier creates a DnsEndpointIdentity based on the hostname portion of Uri if an explicit EndpointIdentity has not been specified as part of the EndpointAddress.

Applies to