FormatterCollection<TFormatter> 建構函式

定義

多載

FormatterCollection<TFormatter>()

初始化 FormatterCollection<TFormatter> 類別的新執行個體,這個執行個體是空白的。

FormatterCollection<TFormatter>(IList<TFormatter>)

初始化 FormatterCollection<TFormatter> 類別的新執行個體,將其當做指定清單的包裝函式。

FormatterCollection<TFormatter>()

來源:
FormatterCollection.cs
來源:
FormatterCollection.cs

初始化 FormatterCollection<TFormatter> 類別的新執行個體,這個執行個體是空白的。

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

適用於

FormatterCollection<TFormatter>(IList<TFormatter>)

來源:
FormatterCollection.cs
來源:
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>

由新的集合所包裝的清單。

適用於