X509Certificate Constructor (X509Certificate)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the X509Certificate class using another X509Certificate class.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- cert
- Type: System.Security.Cryptography.X509Certificates.X509Certificate
A X509Certificate class from which to initialize this class.
| Exception | Condition |
|---|---|
| CryptographicException | An error with the certificate occurs. For example:
|
| ArgumentNullException | The value of the cert parameter is null. |
Show: