DataProtectionBuilderExtensions.PersistKeysToRegistry Method
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.
Configures the data protection system to persist keys to the Windows registry.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToRegistry(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::Win32::RegistryKey ^ registryKey);
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
<Extension()>
Public Function PersistKeysToRegistry (builder As IDataProtectionBuilder, registryKey As RegistryKey) As IDataProtectionBuilder
Parameters
- builder
- IDataProtectionBuilder
- registryKey
- RegistryKey
The location in the registry where keys should be stored.
Returns
A reference to the IDataProtectionBuilder after this operation has completed.