DataProtectionBuilderExtensions.PersistKeysToRegistry(IDataProtectionBuilder, RegistryKey) DataProtectionBuilderExtensions.PersistKeysToRegistry(IDataProtectionBuilder, RegistryKey) Method

Definition

Configures the data protection system to persist keys to the Windows registry.

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToRegistry (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.Win32.RegistryKey registryKey);
static member PersistKeysToRegistry : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.Win32.RegistryKey -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
Parameters
registryKey
RegistryKey RegistryKey

The location in the registry where keys should be stored.

Returns

A reference to the IDataProtectionBuilder after this operation has completed.

Applies to