X509CertificateInitiatorClientCredential.Certificate 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定要在通訊回到用戶端時用於表示服務的憑證。
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,要在通訊回到用戶端時用來表示服務。
例外狀況
set
方法已在認證處於唯讀狀態時使用。
備註
第一次呼叫在 Windows Communication Foundation (WCF) Proxy 時, ClientCredentials 會變成隻讀的。 後續呼叫 set
方法會產生 InvalidOperationException。