Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

System.Net.Http.Formatting Namespace

 

The System.Net.Http.Formatting contains classes for serializing and deserializing HTTP message body in a format based on the requested media type.

ClassDescription
System_CAPS_pubclassBaseJsonMediaTypeFormatter

Abstract media type formatter class to support Bson and Json.

System_CAPS_pubclassBsonMediaTypeFormatter

Represents a media type formatter to handle Bson.

System_CAPS_pubclassBufferedMediaTypeFormatter

Represents a helper class to allow a synchronous formatter on top of the asynchronous formatter infrastructure.

System_CAPS_pubclassContentNegotiationResult

Represents the result of content negotiation performed using <see cref="M:System.Net.Http.Formatting.IContentNegotiator.Negotiate(System.Type,System.Net.Http.HttpRequestMessage,System.Collections.Generic.IEnumerable{System.Net.Http.Formatting.MediaTypeFormatter})" />

System_CAPS_pubclassDefaultContentNegotiator

The default implementation of IContentNegotiator, which is used to select a MediaTypeFormatter for an HttpRequestMessage or HttpResponseMessage.

System_CAPS_pubclassDelegatingEnumerable<T>

Helper class to serialize <see cref="T:System.Collections.Generic.IEnumerable`1" /> types by delegating them through a concrete implementation."/&gt;.

System_CAPS_pubclassFormDataCollection

Represent the collection of form data.

System_CAPS_pubclassFormUrlEncodedMediaTypeFormatter

MediaTypeFormatter class for handling HTML form URL-ended data, also known as application/x-www-form-urlencoded.

System_CAPS_pubclassJsonContractResolver

Represents the default IContractResolver used by JsonMediaTypeFormatter. It uses the formatter's IRequiredMemberSelector to select required members and recognizes the SerializableAttribute type annotation.

System_CAPS_pubclassJsonMediaTypeFormatter

Represents the MediaTypeFormatter class to handle JSON.

System_CAPS_pubclassMediaTypeFormatter

Base class to handle serializing and deserializing strongly-typed objects using ObjectContent.

System_CAPS_pubclassMediaTypeFormatterCollection

Collection class that contains MediaTypeFormatter instances.

System_CAPS_pubclassMediaTypeFormatterExtensions

Represents extensions for adding MediaTypeMapping items to a MediaTypeFormatter.

System_CAPS_pubclassMediaTypeFormatterMatch

This class describes how well a particular MediaTypeFormatter matches a request.

System_CAPS_pubclassMediaTypeMapping

An abstract base class used to create an association between HttpRequestMessage or HttpResponseMessage instances that have certain characteristics and a specific MediaTypeHeaderValue.

System_CAPS_pubclassQueryStringMapping

Class that provides MediaTypeHeaderValues from query strings.

System_CAPS_pubclassRequestHeaderMapping

This class provides a mapping from an arbitrary HTTP request header field to a MediaTypeHeaderValue used to select MediaTypeFormatter instances for handling the entity body of an HttpRequestMessage or HttpResponseMessage. <remarks>This class only checks header fields associated with M:HttpRequestMessage.Headers for a match. It does not check header fields associated with M:HttpResponseMessage.Headers or M:HttpContent.Headers instances.</remarks>

System_CAPS_pubclassUriPathExtensionMapping

Provides MediaTypeHeaderValues from path extensions appearing in a Uri.

System_CAPS_pubclassXmlHttpRequestHeaderMapping

A RequestHeaderMapping that maps the X-Requested-With http header field set by AJAX XmlHttpRequest (XHR) to the media type application/json if no explicit Accept header fields are present in the request.

System_CAPS_pubclassXmlMediaTypeFormatter

MediaTypeFormatter class to handle Xml.

InterfaceDescription
System_CAPS_pubinterfaceIContentNegotiator

Performs content negotiation. This is the process of selecting a response writer (formatter) in compliance with header values in the request.

System_CAPS_pubinterfaceIFormatterLogger

Specifies a callback interface that a formatter can use to log errors while reading.

System_CAPS_pubinterfaceIRequiredMemberSelector

Defines method that determines whether a given member is required on deserialization.

EnumerationDescription
System_CAPS_pubenumMediaTypeFormatterMatchRanking

Contains information about the degree to which a MediaTypeFormatter matches the explicit or implicit preferences found in an incoming request.

Return to top
Show: