共用方式為


FtpWebRequest.ClientCertificates 屬性

定義

取得或設定用來建立與 FTP 伺服器之加密連接的憑證。

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

屬性值

X509CertificateCollection 物件,包含用戶端憑證。

例外狀況

為設定作業指定的值為 null

備註

用戶端憑證是用來在初始 SSL 連線交涉期間驗證用戶端。 如需詳細資訊,請參閱EnableSsl

注意

.NET Framework 會在建立 SSL 工作階段時進行快取,並盡可能嘗試重複使用新要求的快取會話。 嘗試重複使用 SSL 會話時,如果有一個) ,.NET Framework 會使用 (的第一 ClientCertificates 個專案,或嘗試在空白時重複使用匿名會話 ClientCertificates

適用於

另請參閱