共用方式為


DataProtectionAdvancedExtensions.ToTimeLimitedDataProtector 方法

定義

IDataProtector 轉換成 ITimeLimitedDataProtector ,讓承載可以受到有限存留期的保護。

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

參數

protector
IDataProtector

IDataProtector要轉換成限時保護裝置的 。

傳回

ITimeLimitedDataProtector

適用於