Share via


QueryBuilder Class

Definition

Allows constructing a query string.

public ref class QueryBuilder : System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>>
public class QueryBuilder : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>>
type QueryBuilder = class
    interface seq<KeyValuePair<string, string>>
    interface IEnumerable
Public Class QueryBuilder
Implements IEnumerable(Of KeyValuePair(Of String, String))
Inheritance
QueryBuilder
Implements

Constructors

QueryBuilder()

Initializes a new instance of QueryBuilder.

QueryBuilder(IEnumerable<KeyValuePair<String,String>>)

Initializes a new instance of QueryBuilder.

QueryBuilder(IEnumerable<KeyValuePair<String,StringValues>>)

Initializes a new instance of QueryBuilder.

Methods

Add(String, IEnumerable<String>)

Adds a query string token to the instance.

Add(String, String)

Adds a query string token to the instance.

Equals(Object)

Determines whether the specified object is equal to the current object.

GetEnumerator()

Returns an enumerator that iterates through the collection.

GetHashCode()

Serves as the default hash function.

ToQueryString()

Constructs a QueryString from this QueryBuilder.

ToString()

Returns a string that represents the current object.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Applies to