Editare

Partajați prin


CngKeyCreationParameters.Parameters Property

Definition

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:

  1. Create a new CngProperty object for each additional property that you must set.

  2. Call the Parameters property to obtain an empty CngPropertyCollection object.

  3. Add the CngProperty objects to the CngPropertyCollection object.

  4. Call the Create(CngAlgorithm, String, CngKeyCreationParameters) method overload and pass the initialized CngKeyCreationParameters object to it.

Applies to