KeyCreationOptions Property
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

CngKeyCreationParameters.KeyCreationOptions Property

Updated: January 2011

Gets or sets the key creation options.

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

public CngKeyCreationOptions KeyCreationOptions { get; set; }

Property Value

Type: System.Security.Cryptography.CngKeyCreationOptions
An object that specifies options for creating keys. The default value is null, which indicates that the key storage provider's default key creation options are set.

The returned CngKeyCreationOptions object defines options that are used when you create a new CngKey object. These options determine whether the key is created in the user or machine key store, and whether a new key should overwrite an existing key. By default, if CngKeyCreationOptions.MachineKey is not specified, the key is created in the user store.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

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

.NET Framework

Supported in: 3.5

Date

History

Reason

January 2011

Added information about default key creation options.

Customer feedback.

Show:
© 2016 Microsoft