DataProtectionBuilderExtensions.DisableAutomaticKeyGeneration 方法

定义

将数据保护系统配置为不自动生成新密钥。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ DisableAutomaticKeyGeneration(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder DisableAutomaticKeyGeneration (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder);
static member DisableAutomaticKeyGeneration : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function DisableAutomaticKeyGeneration (builder As IDataProtectionBuilder) As IDataProtectionBuilder

参数

返回

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

注解

调用此 API 对应于将 设置为 AutoGenerateKeys “false”。 有关详细信息,请参阅该属性的文档。

适用于