C# Class MvcApi.Formatting.QueryStringMapping

Class that provides T:System.Net.Http.Headers.MediaTypeHeaderValues from query strings.
Inheritance: MediaTypeMapping
Afficher le fichier Open project: dax70/MvcApi

Méthodes publiques

Méthode Description
QueryStringMapping ( string queryStringParameterName, string queryStringParameterValue, MediaTypeHeaderValue mediaType ) : System

Initializes a new instance of the T:System.Net.Http.Formatting.QueryStringMapping class.

QueryStringMapping ( string queryStringParameterName, string queryStringParameterValue, string mediaType ) : System

Initializes a new instance of the T:System.Net.Http.Formatting.QueryStringMapping class.

Méthodes protégées

Méthode Description
OnTryMatchMediaType ( HttpRequestMessage request ) : double
OnTryMatchMediaType ( HttpResponseMessage response ) : double

Private Methods

Méthode Description
DoesQueryStringMatch ( NameValueCollection queryString ) : bool
Initialize ( string queryStringParameterName, string queryStringParameterValue ) : void

Method Details

OnTryMatchMediaType() protected final méthode

protected final OnTryMatchMediaType ( HttpRequestMessage request ) : double
request MvcApi.Http.HttpRequestMessage
Résultat double

OnTryMatchMediaType() protected final méthode

protected final OnTryMatchMediaType ( HttpResponseMessage response ) : double
response MvcApi.Http.HttpResponseMessage
Résultat double

QueryStringMapping() public méthode

Initializes a new instance of the T:System.Net.Http.Formatting.QueryStringMapping class.
public QueryStringMapping ( string queryStringParameterName, string queryStringParameterValue, MediaTypeHeaderValue mediaType ) : System
queryStringParameterName string The name of the query string parameter to match, if present.
queryStringParameterValue string The value of the query string parameter specified by queryStringParameterName.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The to use if the query parameter specified by queryStringParameterName is present and assigned the value specified by queryStringParameterValue.
Résultat System

QueryStringMapping() public méthode

Initializes a new instance of the T:System.Net.Http.Formatting.QueryStringMapping class.
public QueryStringMapping ( string queryStringParameterName, string queryStringParameterValue, string mediaType ) : System
queryStringParameterName string The name of the query string parameter to match, if present.
queryStringParameterValue string The value of the query string parameter specified by queryStringParameterName.
mediaType string The media type to use if the query parameter specified by queryStringParameterName is present and assigned the value specified by queryStringParameterValue.
Résultat System