| BouncyCastleCertificateExtensionsAsX509Certificate2 Method |
Convert a BouncyCastle certificate into an X509Certificate2.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax public static X509Certificate2 AsX509Certificate2(
this X509Certificate certificate
)
Parameters
- certificate X509Certificate
- The BouncyCastle certificate.
Return Value
X509Certificate2The X509Certificate2.
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).
Exceptions Remarks
Converts a BouncyCastle certificate into an X509Certificate2.
See Also