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>)

Source:
CookieTempDataProvider.cs
Source:
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)

Source:
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)

参数

适用于