Creates a new instance of the
Certificate class by duplicating an existing
X509Certificate instance.
Namespace: LLCryptoLib.Security.CertificatesAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
| C# |
|---|
public static Certificate CreateFromX509Certificate(
X509Certificate certificate
) |
| Visual Basic |
|---|
Public Shared Function CreateFromX509Certificate ( _
certificate As X509Certificate _
) As Certificate |
| Visual C++ |
|---|
public:
static Certificate^ CreateFromX509Certificate(
X509Certificate^ certificate
) |
Parameters
- certificate
- Type: System.Security.Cryptography.X509Certificates..::..X509Certificate
The X509Certificate instance to duplicate.
Return Value
A Certificate instance.
Exceptions
| Exception | Condition |
|---|
| System..::..ArgumentNullException | certificate is a null reference (Nothing in Visual Basic). |
See Also