X509CertificateRecipientClientCredential.Authentication 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得用來驗證透過 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 交涉所取得。