ServicePointManager.CheckCertificateRevocationList 属性

定义

获取或设置一个 Boolean 值,该值指示是否根据证书颁发机构吊销列表检查证书。

public:
 static property bool CheckCertificateRevocationList { bool get(); void set(bool value); };
public static bool CheckCertificateRevocationList { get; set; }
static member CheckCertificateRevocationList : bool with get, set
Public Shared Property CheckCertificateRevocationList As Boolean

属性值

true 如果检查了证书吊销列表,则为否则,为 false.

示例

下面的代码示例设置此属性。

ServicePointManager.UseNagleAlgorithm = true;
ServicePointManager.Expect100Continue = true;
ServicePointManager.CheckCertificateRevocationList = true;
ServicePointManager.DefaultConnectionLimit = ServicePointManager.DefaultPersistentConnectionLimit;
ServicePointManager.UseNagleAlgorithm = True
ServicePointManager.Expect100Continue = True
ServicePointManager.CheckCertificateRevocationList = True
ServicePointManager.DefaultConnectionLimit = _
    ServicePointManager.DefaultPersistentConnectionLimit

注解

如果为该CheckCertificateRevocationListtrue证书,则会根据证书颁发机构吊销列表检查证书,作为证书验证过程的一部分。 其默认值为 false

注释

自 .NET 9 起,此属性映射到 CertificateRevocationCheckMode on SocketsHttpHandler.SslOptions

适用于

另请参阅