QueryStringMapping Class

Class that provides MediaTypeHeaderValues from query strings.


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

public ref class QueryStringMapping : public MediaTypeMapping

The QueryStringMapping type exposes the following members.

Public methodQueryStringMapping(String, String, MediaTypeHeaderValue) Initializes a new instance of the QueryStringMapping class.
Public methodQueryStringMapping(String, String, String) Initializes a new instance of the QueryStringMapping class.

Public propertyMediaType Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.)
Public propertyQueryStringParameterName Gets the query string parameter name.
Public propertyQueryStringParameterValue Gets the query string parameter value.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodTryMatchMediaType Returns a value indicating whether the current QueryStringMapping instance can return a MediaTypeHeaderValue from request. (Overrides MediaTypeMapping::TryMatchMediaType(HttpRequestMessage).)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.