Partager via


MediaTypeFormatterCollection Constructor (IEnumerable<MediaTypeFormatter>)

Initializes a new instance of the MediaTypeFormatterCollection class with the given formatters.

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
Public Sub New ( _
    formatters As IEnumerable(Of MediaTypeFormatter) _
)
'Usage
Dim formatters As IEnumerable(Of MediaTypeFormatter)

Dim instance As New MediaTypeFormatterCollection(formatters)
public MediaTypeFormatterCollection(
    IEnumerable<MediaTypeFormatter> formatters
)
public:
MediaTypeFormatterCollection(
    IEnumerable<MediaTypeFormatter^>^ formatters
)
new : 
        formatters:IEnumerable<MediaTypeFormatter> -> MediaTypeFormatterCollection
public function MediaTypeFormatterCollection(
    formatters : IEnumerable<MediaTypeFormatter>
)

Parameters

See Also

Reference

MediaTypeFormatterCollection Class

MediaTypeFormatterCollection Overload

System.Net.Http.Formatting Namespace