你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CosmosClientOptions.ServerCertificateCustomValidationCallback 属性

定义

一个回调委托,用于对 HTTP 和 TCP 执行自定义证书验证。

public Func<System.Security.Cryptography.X509Certificates.X509Certificate2,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslPolicyErrors,bool> ServerCertificateCustomValidationCallback { get; set; }
member this.ServerCertificateCustomValidationCallback : Func<System.Security.Cryptography.X509Certificates.X509Certificate2, System.Security.Cryptography.X509Certificates.X509Chain, System.Net.Security.SslPolicyErrors, bool> with get, set
Public Property ServerCertificateCustomValidationCallback As Func(Of X509Certificate2, X509Chain, SslPolicyErrors, Boolean)

属性值

注解

不建议在生产环境中自定义 SSL 验证。

适用于