KeyManagementOptions.AutoGenerateKeys Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies whether the data protection system should auto-generate keys.
public:
property bool AutoGenerateKeys { bool get(); void set(bool value); };
public bool AutoGenerateKeys { get; set; }
member this.AutoGenerateKeys : bool with get, set
Public Property AutoGenerateKeys As Boolean
Property Value
Remarks
If this value is 'false', the system will not generate new keys automatically. The key ring must contain at least one active non-revoked key, otherwise calls to Protect(Byte[]) may fail. The system may end up protecting payloads to expired keys if this property is set to 'false'. The default value is 'true'.