PublicKey Constructors
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.
Overloads
PublicKey(AsymmetricAlgorithm) |
Initializes a new instance of the PublicKey class using SubjectPublicKeyInfo from an AsymmetricAlgorithm. |
PublicKey(Oid, AsnEncodedData, AsnEncodedData) |
Initializes a new instance of the PublicKey class using an object identifier (OID) object of the public key, an ASN.1-encoded representation of the public key parameters, and an ASN.1-encoded representation of the public key value. |
PublicKey(AsymmetricAlgorithm)
- Source:
- PublicKey.cs
- Source:
- PublicKey.cs
- Source:
- PublicKey.cs
Initializes a new instance of the PublicKey class using SubjectPublicKeyInfo from an AsymmetricAlgorithm.
public:
PublicKey(System::Security::Cryptography::AsymmetricAlgorithm ^ key);
public PublicKey (System.Security.Cryptography.AsymmetricAlgorithm key);
new System.Security.Cryptography.X509Certificates.PublicKey : System.Security.Cryptography.AsymmetricAlgorithm -> System.Security.Cryptography.X509Certificates.PublicKey
Public Sub New (key As AsymmetricAlgorithm)
Parameters
An asymmetric algorithm to obtain the SubjectPublicKeyInfo from.
Exceptions
The SubjectPublicKeyInfo could not be decoded. The ExportSubjectPublicKeyInfo() must return a valid ASN.1-DER encoded X.509 SubjectPublicKeyInfo.
ExportSubjectPublicKeyInfo() has not been overridden in a derived class.
Applies to
PublicKey(Oid, AsnEncodedData, AsnEncodedData)
- Source:
- PublicKey.cs
- Source:
- PublicKey.cs
- Source:
- PublicKey.cs
Initializes a new instance of the PublicKey class using an object identifier (OID) object of the public key, an ASN.1-encoded representation of the public key parameters, and an ASN.1-encoded representation of the public key value.
public:
PublicKey(System::Security::Cryptography::Oid ^ oid, System::Security::Cryptography::AsnEncodedData ^ parameters, System::Security::Cryptography::AsnEncodedData ^ keyValue);
public PublicKey (System.Security.Cryptography.Oid oid, System.Security.Cryptography.AsnEncodedData parameters, System.Security.Cryptography.AsnEncodedData keyValue);
new System.Security.Cryptography.X509Certificates.PublicKey : System.Security.Cryptography.Oid * System.Security.Cryptography.AsnEncodedData * System.Security.Cryptography.AsnEncodedData -> System.Security.Cryptography.X509Certificates.PublicKey
Public Sub New (oid As Oid, parameters As AsnEncodedData, keyValue As AsnEncodedData)
Parameters
- oid
- Oid
An object identifier (OID) object that represents the public key.
- parameters
- AsnEncodedData
An ASN.1-encoded representation of the public key parameters.
- keyValue
- AsnEncodedData
An ASN.1-encoded representation of the public key value.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기