共用方式為


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;
ServicePointManager.UseNagleAlgorithm = True
ServicePointManager.Expect100Continue = True
ServicePointManager.CheckCertificateRevocationList = True
ServicePointManager.DefaultConnectionLimit = _
    ServicePointManager.DefaultPersistentConnectionLimit

備註

CheckCertificateRevocationList當 為 true時,系統會根據證書頒發機構單位撤銷清單檢查憑證,作為憑證驗證程式的一部分。 其預設值為 false

適用於

另請參閱