共用方式為


CookieTempDataProvider 建構函式

定義

多載

CookieTempDataProvider(IDataProtectionProvider, IOptions<CookieTempDataProviderOptions>)
CookieTempDataProvider(IDataProtectionProvider, ILoggerFactory, IOptions<CookieTempDataProviderOptions>)
CookieTempDataProvider(IDataProtectionProvider, ILoggerFactory, IOptions<CookieTempDataProviderOptions>, TempDataSerializer)

初始化 CookieTempDataProvider 的新執行個體。

CookieTempDataProvider(IDataProtectionProvider, IOptions<CookieTempDataProviderOptions>)

public:
 CookieTempDataProvider(Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ dataProtectionProvider, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::CookieTempDataProviderOptions ^> ^ options);
public CookieTempDataProvider (Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.CookieTempDataProviderOptions> options);
new Microsoft.AspNetCore.Mvc.ViewFeatures.CookieTempDataProvider : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.CookieTempDataProviderOptions> -> Microsoft.AspNetCore.Mvc.ViewFeatures.CookieTempDataProvider
Public Sub New (dataProtectionProvider As IDataProtectionProvider, options As IOptions(Of CookieTempDataProviderOptions))

參數

dataProtectionProvider
IDataProtectionProvider

適用於

CookieTempDataProvider(IDataProtectionProvider, ILoggerFactory, IOptions<CookieTempDataProviderOptions>)

來源:
CookieTempDataProvider.cs
來源:
CookieTempDataProvider.cs
public:
 CookieTempDataProvider(Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ dataProtectionProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::CookieTempDataProviderOptions ^> ^ options);
public CookieTempDataProvider (Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.CookieTempDataProviderOptions> options);
new Microsoft.AspNetCore.Mvc.ViewFeatures.CookieTempDataProvider : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.CookieTempDataProviderOptions> -> Microsoft.AspNetCore.Mvc.ViewFeatures.CookieTempDataProvider
Public Sub New (dataProtectionProvider As IDataProtectionProvider, loggerFactory As ILoggerFactory, options As IOptions(Of CookieTempDataProviderOptions))

參數

dataProtectionProvider
IDataProtectionProvider
loggerFactory
ILoggerFactory

適用於

CookieTempDataProvider(IDataProtectionProvider, ILoggerFactory, IOptions<CookieTempDataProviderOptions>, TempDataSerializer)

來源:
CookieTempDataProvider.cs

初始化 CookieTempDataProvider 的新執行個體。

public:
 CookieTempDataProvider(Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ dataProtectionProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::CookieTempDataProviderOptions ^> ^ options, Microsoft::AspNetCore::Mvc::ViewFeatures::Infrastructure::TempDataSerializer ^ tempDataSerializer);
public CookieTempDataProvider (Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.CookieTempDataProviderOptions> options, Microsoft.AspNetCore.Mvc.ViewFeatures.Infrastructure.TempDataSerializer tempDataSerializer);
new Microsoft.AspNetCore.Mvc.ViewFeatures.CookieTempDataProvider : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.CookieTempDataProviderOptions> * Microsoft.AspNetCore.Mvc.ViewFeatures.Infrastructure.TempDataSerializer -> Microsoft.AspNetCore.Mvc.ViewFeatures.CookieTempDataProvider
Public Sub New (dataProtectionProvider As IDataProtectionProvider, loggerFactory As ILoggerFactory, options As IOptions(Of CookieTempDataProviderOptions), tempDataSerializer As TempDataSerializer)

參數

loggerFactory
ILoggerFactory

ILoggerFactory

tempDataSerializer
TempDataSerializer

TempDataSerializer

適用於