CngKeyCreationParameters::KeyCreationOptions Property
Gets or sets the key creation options.
Assembly: System.Core (in System.Core.dll)
public: property CngKeyCreationOptions KeyCreationOptions { CngKeyCreationOptions get(); void set(CngKeyCreationOptions value); }
Property Value
Type: System.Security.Cryptography::CngKeyCreationOptionsAn 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.
Available since 3.5