Sdílet prostřednictvím


DataProtectionAdvancedExtensions.ToTimeLimitedDataProtector Metoda

Definice

Převede objekt na IDataProtector objekt ITimeLimitedDataProtector , aby datové části mohly být chráněny s omezenou životností.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::ITimeLimitedDataProtector ^ ToTimeLimitedDataProtector(Microsoft::AspNetCore::DataProtection::IDataProtector ^ protector);
public static Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector ToTimeLimitedDataProtector (this Microsoft.AspNetCore.DataProtection.IDataProtector protector);
static member ToTimeLimitedDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtector -> Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector
<Extension()>
Public Function ToTimeLimitedDataProtector (protector As IDataProtector) As ITimeLimitedDataProtector

Parametry

protector
IDataProtector

Převede IDataProtector se na časově omezenou ochranu.

Návraty

An ITimeLimitedDataProtector.

Platí pro