共用方式為


X509CertificateInitiatorClientCredential.Certificate 屬性

定義

取得或設定要在通訊回到用戶端時用於表示服務的憑證。

public:
 property System::Security::Cryptography::X509Certificates::X509Certificate2 ^ Certificate { System::Security::Cryptography::X509Certificates::X509Certificate2 ^ get(); void set(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ value); };
public System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate { get; set; }
member this.Certificate : System.Security.Cryptography.X509Certificates.X509Certificate2 with get, set
Public Property Certificate As X509Certificate2

屬性值

X509Certificate2

X509Certificate2,要在通訊回到用戶端時用來表示服務。

例外狀況

set 方法已在認證處於唯讀狀態時使用。

備註

第一次呼叫在 Windows Communication Foundation (WCF) Proxy 時, ClientCredentials 會變成隻讀的。 後續呼叫 set 方法會產生 InvalidOperationException

適用於