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)

Inheritance Hierarchy

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

Syntax

public class QueryStringMapping : MediaTypeMapping
public ref class QueryStringMapping : MediaTypeMapping
type QueryStringMapping = 
    class
        inherit MediaTypeMapping
    end
Public Class QueryStringMapping
    Inherits MediaTypeMapping

Constructors

Name Description
System_CAPS_pubmethod QueryStringMapping(String, String, MediaTypeHeaderValue)

Initializes a new instance of the QueryStringMapping class.

System_CAPS_pubmethod QueryStringMapping(String, String, String)

Initializes a new instance of the QueryStringMapping class.

Properties

Name Description
System_CAPS_pubproperty MediaType

Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.)

System_CAPS_pubproperty QueryStringParameterName

Gets the query string parameter name.

System_CAPS_pubproperty QueryStringParameterValue

Gets the query string parameter value.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryMatchMediaType(HttpRequestMessage)

Returns a value indicating whether the current QueryStringMapping instance can return a MediaTypeHeaderValue from request. (Overrides MediaTypeMapping.TryMatchMediaType(HttpRequestMessage).)

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

System.Net.Http.Formatting Namespace

Return to top