Export (0) Print
Expand All

CngKeyCreationParameters.Parameters Property

Enables a CngKey object to be created with additional properties that are set before the key is finalized.

Namespace:  System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

public CngPropertyCollection Parameters { get; }

Property Value

Type: System.Security.Cryptography.CngPropertyCollection
A collection object that contains any additional parameters that you must set on a CngKey object during key creation.

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft