Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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)
Syntax
'Declaration
Public Overridable Function ToString ( _
fVerbose As Boolean _
) As String
public virtual string ToString(
bool fVerbose
)
public:
virtual String^ ToString(
bool fVerbose
)
abstract ToString :
fVerbose:bool -> string
override ToString :
fVerbose:bool -> string
public function ToString(
fVerbose : boolean
) : String
Parameters
- fVerbose
Type: System. . :: . .Boolean
true to display the public key, private key, extensions, and so forth; false to display information that is similar to the X509Certificate2 class, including thumbprint, serial number, subject and issuer names, and so on.
Return Value
Type: System. . :: . .String
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 X509Certificate2 object to obtain precise information.
This method displays the certificate in text format. If the fVerbose parameter is set to true, the text display includes the public key, private key, and extensions. If fVerbose is set to false, the text display includes those fields available from the X.509 certificate, including thumbprint, serial number, subject and issuer names, and validity date information.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.