DataProtectionBuilderExtensions.AddKeyManagementOptions 方法

定义

为数据保护系统配置密钥管理选项。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ AddKeyManagementOptions(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Action<Microsoft::AspNetCore::DataProtection::KeyManagement::KeyManagementOptions ^> ^ setupAction);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyManagementOptions (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Action<Microsoft.AspNetCore.DataProtection.KeyManagement.KeyManagementOptions> setupAction);
static member AddKeyManagementOptions : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Action<Microsoft.AspNetCore.DataProtection.KeyManagement.KeyManagementOptions> -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function AddKeyManagementOptions (builder As IDataProtectionBuilder, setupAction As Action(Of KeyManagementOptions)) As IDataProtectionBuilder

参数

setupAction
Action<KeyManagementOptions>

用于配置所提供的 KeyManagementOptionsAction<T>

返回

此操作完成后对 IDataProtectionBuilder 的引用。

适用于