HttpRequestMessageExtensions.GetQueryNameValuePairs Method (HttpRequestMessage)

 

Gets the parsed query string as a collection of key-value pairs.

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

Syntax

public static IEnumerable<KeyValuePair<string, string>> GetQueryNameValuePairs(
    this HttpRequestMessage request
)
public:
[ExtensionAttribute]
static IEnumerable<KeyValuePair<String^, String^>>^ GetQueryNameValuePairs(
    HttpRequestMessage^ request
)
static member GetQueryNameValuePairs : 
        request:HttpRequestMessage -> IEnumerable<KeyValuePair<string, string>>
<ExtensionAttribute>
Public Shared Function GetQueryNameValuePairs (
    request As HttpRequestMessage
) As IEnumerable(Of KeyValuePair(Of String, String))

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, String>>

The query string as a collection of key-value pairs.

See Also

HttpRequestMessageExtensions Class
System.Net.Http Namespace

Return to top