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
- formatters
Type: System.Collections.Generic.IEnumerable<MediaTypeFormatter>
A collection of MediaTypeFormatter instances to place in the collection.
See Also
Reference
MediaTypeFormatterCollection Class