Partager via


MediaTypeFormatterCollection.JsonFormatter Property

Gets the MediaTypeFormatter to use for JSON.

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

Syntax

'Declaration
Public ReadOnly Property JsonFormatter As JsonMediaTypeFormatter
    Get
'Usage
Dim instance As MediaTypeFormatterCollection
Dim value As JsonMediaTypeFormatter

value = instance.JsonFormatter
public JsonMediaTypeFormatter JsonFormatter { get; }
public:
property JsonMediaTypeFormatter^ JsonFormatter {
    JsonMediaTypeFormatter^ get ();
}
member JsonFormatter : JsonMediaTypeFormatter
function get JsonFormatter () : JsonMediaTypeFormatter

Property Value

Type: System.Net.Http.Formatting.JsonMediaTypeFormatter
The MediaTypeFormatter to use for JSON.

See Also

Reference

MediaTypeFormatterCollection Class

System.Net.Http.Formatting Namespace