DataProtectionBuilderExtensions.DisableAutomaticKeyGeneration Method
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.
Configures the data protection system not to generate new keys automatically.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ DisableAutomaticKeyGeneration(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder DisableAutomaticKeyGeneration (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder);
static member DisableAutomaticKeyGeneration : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function DisableAutomaticKeyGeneration (builder As IDataProtectionBuilder) As IDataProtectionBuilder
- builder
- IDataProtectionBuilder
A reference to the IDataProtectionBuilder after this operation has completed.
Calling this API corresponds to setting AutoGenerateKeys to 'false'. See that property's documentation for more information.