Share via


QueryStringMapping Constructor (String, String, )

Initializes a new instance of the QueryStringMapping class.

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

Syntax

'Declaration
Public Sub New ( _
    queryStringParameterName As String, _
    queryStringParameterValue As String, _
    mediaType As MediaTypeHeaderValue _
)
'Usage
Dim queryStringParameterName As String
Dim queryStringParameterValue As String
Dim mediaType As MediaTypeHeaderValue

Dim instance As New QueryStringMapping(queryStringParameterName, _
    queryStringParameterValue, mediaType)
public QueryStringMapping(
    string queryStringParameterName,
    string queryStringParameterValue,
    MediaTypeHeaderValue mediaType
)
public:
QueryStringMapping(
    String^ queryStringParameterName, 
    String^ queryStringParameterValue, 
    MediaTypeHeaderValue^ mediaType
)
new : 
        queryStringParameterName:string * 
        queryStringParameterValue:string * 
        mediaType:MediaTypeHeaderValue -> QueryStringMapping
public function QueryStringMapping(
    queryStringParameterName : String, 
    queryStringParameterValue : String, 
    mediaType : MediaTypeHeaderValue
)

Parameters

  • queryStringParameterName
    Type: System.String
    The name of the query string parameter to match, if present.
  • queryStringParameterValue
    Type: System.String
    The value of the query string parameter specified by queryStringParameterName.
  • mediaType
    Type: MediaTypeHeaderValue
    The MediaTypeHeaderValue to use if the query parameter specified by queryStringParameterName is present and assigned the value specified by queryStringParameterValue.

See Also

Reference

QueryStringMapping Class

QueryStringMapping Overload

System.Net.Http.Formatting Namespace