Share via


X509Certificate2.ToString Method (Boolean)

Returns a string representation of the current X509Certificate2 object, with extra information, if specified.

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

Syntax

public virtual string ToString (
         bool fVerbose
)

Parameters

  • fVerbose
    true to produce the verbose form of the string representation; otherwise, false.

Return Value

A string representation of the current X509Certificate2 object.

Remarks

This method displays the certificate in text format. If the verbose parameter is set to true, the text display includes the subject, issuer, serial number, not before date, not after date, and thumbprint. If verbose is set to false, the text display includes the name of the type.

Version Information

Available in the .NET Micro Framework version 4.2.

See Also

Reference

X509Certificate2 Class
X509Certificate2 Members
System.Security.Cryptography.X509Certificates Namespace