Bouncy Castle Certificate ExtensionsGet Subject Name Method
Gets the subject name of the certificate.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The subject name.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public static string GetSubjectName(
this X509Certificate certificate
)Parameters
- certificate X509Certificate
- The certificate.
Return Value
StringThe subject name.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type X509Certificate. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
Gets the subject name of the certificate.
Exceptions
| ArgumentNullException | certificate is . |