FormatFilter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
FormatFilter(IOptions<MvcOptions>) |
已淘汰.
初始化 FormatFilter 的執行個體。 |
FormatFilter(IOptions<MvcOptions>, ILoggerFactory) |
初始化 FormatFilter 的執行個體。 |
FormatFilter(IOptions<MvcOptions>)
警告
This constructor is obsolete and will be removed in a future version.
初始化 FormatFilter 的執行個體。
public:
FormatFilter(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ options);
public FormatFilter (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> options);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public FormatFilter (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> options);
new Microsoft.AspNetCore.Mvc.Formatters.FormatFilter : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> -> Microsoft.AspNetCore.Mvc.Formatters.FormatFilter
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Mvc.Formatters.FormatFilter : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> -> Microsoft.AspNetCore.Mvc.Formatters.FormatFilter
Public Sub New (options As IOptions(Of MvcOptions))
參數
- options
- IOptions<MvcOptions>
- 屬性
適用於
FormatFilter(IOptions<MvcOptions>, ILoggerFactory)
初始化 FormatFilter 的執行個體。
public:
FormatFilter(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public FormatFilter (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.Formatters.FormatFilter : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.Formatters.FormatFilter
Public Sub New (options As IOptions(Of MvcOptions), loggerFactory As ILoggerFactory)
參數
- options
- IOptions<MvcOptions>
- loggerFactory
- ILoggerFactory