FormatterCollection<TFormatter> 构造函数

定义

重载

FormatterCollection<TFormatter>()

初始化为空的 FormatterCollection<TFormatter> 类的新实例。

FormatterCollection<TFormatter>(IList<TFormatter>)

FormatterCollection<TFormatter> 类的新实例初始化为指定列表的包装。

FormatterCollection<TFormatter>()

Source:
FormatterCollection.cs
Source:
FormatterCollection.cs

初始化为空的 FormatterCollection<TFormatter> 类的新实例。

public:
 FormatterCollection();
public FormatterCollection ();
Public Sub New ()

适用于

FormatterCollection<TFormatter>(IList<TFormatter>)

Source:
FormatterCollection.cs
Source:
FormatterCollection.cs

FormatterCollection<TFormatter> 类的新实例初始化为指定列表的包装。

public:
 FormatterCollection(System::Collections::Generic::IList<TFormatter> ^ list);
public FormatterCollection (System.Collections.Generic.IList<TFormatter> list);
new Microsoft.AspNetCore.Mvc.Formatters.FormatterCollection<'Formatter> : System.Collections.Generic.IList<'Formatter> -> Microsoft.AspNetCore.Mvc.Formatters.FormatterCollection<'Formatter>
Public Sub New (list As IList(Of TFormatter))

参数

list
IList<TFormatter>

由新的集合包装的列表。

适用于