DataProtectionBuilderExtensions.SetDefaultKeyLifetime Metoda

Definice

Nastaví výchozí životnost klíčů vytvořených systémem ochrany dat.

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

Parametry

lifetime
TimeSpan

Životnost (doba před vypršením platnosti) pro nově vytvořené klíče. Další NewKeyLifetime informace a poznámky k využití najdete tady.

Návraty

IDataProtectionBuilder

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

Platí pro