DataProtectionBuilderExtensions.DisableAutomaticKeyGeneration Metoda

Definice

Nakonfiguruje systém ochrany dat tak, aby negeneroval nové klíče automaticky.

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

Parametry

Návraty

Odkaz na po IDataProtectionBuilder dokončení této operace.

Poznámky

Volání tohoto rozhraní API odpovídá nastavení AutoGenerateKeys false. Další informace najdete v dokumentaci k dané vlastnosti.

Platí pro