共用方式為


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

屬性值

用來驗證透過 SSL 驗證取得之服務憑證的設定。

範例

這段程式碼將示範如何存取這個屬性。

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

備註

X509ClientCertificateAuthentication 類別表示用戶端 Proxy 用來驗證服務憑證的設定,而這份憑證是使用 SSL/TLS 交涉所取得。

適用於