QueryStringMapping Class

Class that provides MediaTypeHeaderValues from query strings.

Inheritance Hierarchy

System.Object
  System.Net.Http.Formatting.MediaTypeMapping
    System.Net.Http.Formatting.QueryStringMapping

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

Syntax

'Declaration
Public Class QueryStringMapping _
    Inherits MediaTypeMapping
'Usage
Dim instance As QueryStringMapping
public class QueryStringMapping : MediaTypeMapping
public ref class QueryStringMapping : public MediaTypeMapping
type QueryStringMapping =  
    class
        inherit MediaTypeMapping
    end
public class QueryStringMapping extends MediaTypeMapping

The QueryStringMapping type exposes the following members.

Constructors

  Name Description
Public method QueryStringMapping(String, String, MediaTypeHeaderValue) Initializes a new instance of the QueryStringMapping class.
Public method QueryStringMapping(String, String, String) Initializes a new instance of the QueryStringMapping class.

Top

Properties

  Name Description
Public property MediaType Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.)
Public property QueryStringParameterName Gets the query string parameter name.
Public property QueryStringParameterValue Gets the query string parameter value.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method TryMatchMediaType Returns a value indicating whether the current QueryStringMapping instance can return a MediaTypeHeaderValue from request. (Overrides MediaTypeMapping.TryMatchMediaType(HttpRequestMessage).)

Top

Thread Safety

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

See Also

Reference

System.Net.Http.Formatting Namespace