ServicePointManager.CheckCertificateRevocationList Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą Boolean , czy certyfikat jest sprawdzany względem listy odwołania urzędu certyfikacji.

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

Wartość właściwości

true jeśli lista odwołania certyfikatów jest zaznaczona; w przeciwnym razie , false.

Przykłady

Poniższy przykład kodu ustawia tę właściwość.

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

Uwagi

Gdy parametr CheckCertificateRevocationList to true, certyfikat jest sprawdzany względem listy odwołania urzędu certyfikacji w ramach procesu weryfikacji certyfikatu. Jego wartością domyślną jest false.

Dotyczy

Zobacz też