DataProtectionAdvancedExtensions.ToTimeLimitedDataProtector 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 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要轉換成限時保護裝置的 。