IdentityVerifier.TryGetIdentity(EndpointAddress, EndpointIdentity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET