Share via


ServicePointManagerElement.CheckCertificateName 属性

定义

获取或设置一个布尔值,该值控制是否检查 X509 证书中的主机名信息。

public:
 property bool CheckCertificateName { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("checkCertificateName", DefaultValue=true)]
public bool CheckCertificateName { get; set; }
[<System.Configuration.ConfigurationProperty("checkCertificateName", DefaultValue=true)>]
member this.CheckCertificateName : bool with get, set
Public Property CheckCertificateName As Boolean

属性值

如果指定主机名检查,则为 true,否则为 false

属性

适用于

另请参阅