Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IdentityVerifier::TryGetIdentity Method (EndpointAddress^, EndpointIdentity^%)

 

Tries to create an identity from an endpoint.

Namespace:   System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
virtual bool TryGetIdentity(
	EndpointAddress^ reference,
	[OutAttribute] EndpointIdentity^% identity
) abstract

Parameters

reference
Type: System.ServiceModel::EndpointAddress^

The EndpointAddress to use for creating the identity.

identity
Type: System.ServiceModel::EndpointIdentity^%

The EndpointIdentity that is returned.

Return Value

Type: System::Boolean

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

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.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft