Pkcs12SafeContents.AddKeyUnencrypted(AsymmetricAlgorithm) Method
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.
Adds an asymmetric private key to the SafeContents via a new Pkcs12KeyBag and returns the newly created bag instance.
public:
System::Security::Cryptography::Pkcs::Pkcs12KeyBag ^ AddKeyUnencrypted(System::Security::Cryptography::AsymmetricAlgorithm ^ key);
public System.Security.Cryptography.Pkcs.Pkcs12KeyBag AddKeyUnencrypted (System.Security.Cryptography.AsymmetricAlgorithm key);
member this.AddKeyUnencrypted : System.Security.Cryptography.AsymmetricAlgorithm -> System.Security.Cryptography.Pkcs.Pkcs12KeyBag
Public Function AddKeyUnencrypted (key As AsymmetricAlgorithm) As Pkcs12KeyBag
Parameters
The asymmetric private key to add.
Returns
The bag instance which was added to the SafeContents.
Exceptions
The key
parameter is null
.
This instance is read-only.
The key export failed.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.