System.Net.ServicePointManager.CertificatePolicy Property

Gets or sets policy for server certificates.

Syntax

[System.Obsolete("Use ServerCertificateValidationCallback instead", false)]
public static ICertificatePolicy CertificatePolicy { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

When the ServicePointManager.CertificatePolicy property is set to an System.Net.ICertificatePolicy interface object, the System.Net.ServicePointManager object uses the certificate policy defined in that instance instead of the default certificate policy.

The default certificate policy allows valid certificates and valid certificates that have expired.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0