共用方式為


DataProtectionBuilderExtensions.PersistKeysToRegistry 方法

定義

設定資料保護系統,將金鑰保存到 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

參數

registryKey
RegistryKey

登錄中應儲存機碼的位置。

傳回

此作業完成之後的 IDataProtectionBuilder 參考。

適用於