CngKeyCreationParameters.Parameters Property
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.
Enables a CngKey object to be created with additional properties that are set before the key is finalized.
public:
property System::Security::Cryptography::CngPropertyCollection ^ Parameters { System::Security::Cryptography::CngPropertyCollection ^ get(); };
public System.Security.Cryptography.CngPropertyCollection Parameters { get; }
member this.Parameters : System.Security.Cryptography.CngPropertyCollection
Public ReadOnly Property Parameters As CngPropertyCollection
Property Value
A collection object that contains any additional parameters that you must set on a CngKey object during key creation.
Remarks
The CngKeyCreationParameters class enables you to create a new CngKey object and initialize it with common properties. If you must set additional properties on the key during its creation, follow these steps:
Create a new CngProperty object for each additional property that you must set.
Call the Parameters property to obtain an empty CngPropertyCollection object.
Add the CngProperty objects to the CngPropertyCollection object.
Call the Create(CngAlgorithm, String, CngKeyCreationParameters) method overload and pass the initialized CngKeyCreationParameters object to it.