Partager via


QueryStringMapping Constructor (String, 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 String _
)
'Usage
Dim queryStringParameterName As String
Dim queryStringParameterValue As String
Dim mediaType As String

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

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: System.String
    The media type 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