System.Security.Cryptography.X509Certificates.X509Certificate2.ToString Method

Displays an X.509 certificate in text format.

Syntax

public override string ToString ()

Returns

The certificate information.

Remarks

As with all ToString methods, the output might not be consistent across versions of the .NET Framework, so the method results should not be parsed for content. Use the properties on the System.Security.Cryptography.X509Certificates.X509Certificate2 object to obtain precise information about the content or use the X509Certificate2.ToString(bool) method to obtain information about the certificate.

This method displays the certificate in text format.

Requirements

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0