共用方式為


DataProtectionBuilderExtensions.UseEphemeralDataProtectionProvider 方法

定義

設定資料保護系統,以用於 EphemeralDataProtectionProvider 資料保護服務。

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

參數

傳回

此作業完成之後的 IDataProtectionBuilder 參考。

備註

如果使用此選項,資料保護系統所保護的承載將會在應用程式結束之後永久無法加密。

適用於