ServicePointManager.CheckCertificateRevocationList 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 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
。