Enables a CngKey object to be created with additional properties that are set before the key is finalized.
Assembly: System.Core (in System.Core.dll)
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 property to obtain an empty CngPropertyCollection object.
Call the Create(CngAlgorithm, String, CngKeyCreationParameters) method overload and pass the initialized CngKeyCreationParameters object to it.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)