ServicePointManager.CheckCertificateRevocationList Properti

Definisi

Mendapatkan atau menetapkan Boolean nilai yang menunjukkan apakah sertifikat diperiksa terhadap daftar pencabutan otoritas sertifikat.

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

Nilai Properti

true jika daftar pencabutan sertifikat dicentang; jika tidak, false.

Contoh

Contoh kode berikut mengatur properti ini.

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

Keterangan

CheckCertificateRevocationList Ketika adalah true, sertifikat diperiksa terhadap daftar pencabutan otoritas sertifikat, sebagai bagian dari proses validasi sertifikat. Nilai defaultnya adalah false.

Note

Sejak .NET 9, properti ini memetakan ke CertificateRevocationCheckMode pada SocketsHttpHandler.SslOptions.

Berlaku untuk

Lihat juga