Windows apps
Collapse the table of content
Expand the table of content

ToString Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Displays an X.509 certificate in text format.

Namespace:  System.Security.Cryptography.X509Certificates
Assembly:  System.Security (in System.Security.dll)

public:
virtual String^ ToString() override

Return Value

Type: System..::..String
The certificate information.

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 X509Certificate2 object to obtain precise information about the content or use the ToString method to obtain information about the certificate.

This method displays the certificate in text format.

Show:
© 2017 Microsoft