Bagikan melalui


DataProtectionBuilderExtensions.PersistKeysToRegistry Metode

Definisi

Mengonfigurasi sistem perlindungan data untuk mempertahankan kunci ke registri Windows.

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

Parameter

registryKey
RegistryKey

Lokasi di registri tempat kunci harus disimpan.

Mengembalikan

Referensi ke IDataProtectionBuilder setelah operasi ini selesai.

Berlaku untuk