Partager via


MediaTypeFormatterCollection Constructor

Initializes a new instance of the MediaTypeFormatterCollection class with default values.

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New MediaTypeFormatterCollection()
public MediaTypeFormatterCollection()
public:
MediaTypeFormatterCollection()
new : unit -> MediaTypeFormatterCollection
public function MediaTypeFormatterCollection()

Remarks

This collection will be initialized to contain default MediaTypeFormatter instances for XML, JsonValue and JSON.

See Also

Reference

MediaTypeFormatterCollection Class

MediaTypeFormatterCollection Overload

System.Net.Http.Formatting Namespace