X509AsymmetricSecurityKey(X509Certificate2) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the X509AsymmetricSecurityKey class using the specified X.509 certificate.
public:
X509AsymmetricSecurityKey(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public X509AsymmetricSecurityKey (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.IdentityModel.Tokens.X509AsymmetricSecurityKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.IdentityModel.Tokens.X509AsymmetricSecurityKey
Public Sub New (certificate As X509Certificate2)
Parameters
- certificate
- X509Certificate2
The X509Certificate2 that represents the X.509 certificate.
Exceptions
certificate
is null
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.