HttpClientHandler.ClientCertificates 属性

定义

获取与向服务器发出的请求关联的安全证书的集合。

public:
 property System::Security::Cryptography::X509Certificates::X509CertificateCollection ^ ClientCertificates { System::Security::Cryptography::X509Certificates::X509CertificateCollection ^ get(); };
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates { get; }
public System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates { get; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.ClientCertificates : System.Security.Cryptography.X509Certificates.X509CertificateCollection
member this.ClientCertificates : System.Security.Cryptography.X509Certificates.X509CertificateCollection
Public ReadOnly Property ClientCertificates As X509CertificateCollection

属性值

执行基于证书的客户端身份验证时提供给服务器的 X509CertificateCollection。

属性

注解

在 .NET Core 上,X509 证书上的密钥用法属性(如果有)需要具有值“数字签名”,以便在发送请求时使用。

适用于