X509CertificateRecipientClientCredential.Authentication 属性

定义

获取用于验证使用 SSL 身份验证获得的服务证书的设置。

public:
 property System::ServiceModel::Security::X509ServiceCertificateAuthentication ^ Authentication { System::ServiceModel::Security::X509ServiceCertificateAuthentication ^ get(); };
public System.ServiceModel.Security.X509ServiceCertificateAuthentication Authentication { get; }
member this.Authentication : System.ServiceModel.Security.X509ServiceCertificateAuthentication
Public ReadOnly Property Authentication As X509ServiceCertificateAuthentication

属性值

X509ServiceCertificateAuthentication

用于验证使用 SSL 身份验证获得的服务证书的设置。

示例

此代码演示如何访问该属性。

public void snippet21(CalculatorClient cc)
{
    X509CertificateRecipientClientCredential rcc = cc.ClientCredentials.ServiceCertificate;
    X509ServiceCertificateAuthentication xauth = rcc.Authentication;
}

注解

X509ClientCertificateAuthentication 类,表示客户端代理验证使用 SSL/TLS 协商获得的服务证书时所使用的设置。

适用于