Share via


QueryCollection Class

Definition

The HttpRequest query string collection

public ref class QueryCollection : Microsoft::AspNetCore::Http::IQueryCollection, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::Extensions::Primitives::StringValues>>
public class QueryCollection : Microsoft.AspNetCore.Http.IQueryCollection, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Extensions.Primitives.StringValues>>
type QueryCollection = class
    interface IQueryCollection
    interface seq<KeyValuePair<string, StringValues>>
    interface IEnumerable
Public Class QueryCollection
Implements IEnumerable(Of KeyValuePair(Of String, StringValues)), IQueryCollection
Inheritance
QueryCollection
Implements

Constructors

QueryCollection()

Initializes a new instance of QueryCollection.

QueryCollection(Dictionary<String,StringValues>)

Initializes a new instance of QueryCollection.

QueryCollection(Int32)

Initializes a new instance of QueryCollection.

QueryCollection(QueryCollection)

Creates a shallow copy of the specified store.

Fields

Empty

Gets an empty QueryCollection.

Properties

Count

Gets the number of elements contained in the QueryCollection;.

Item[String]

Gets the associated set of values from the collection.

Keys

Gets the collection of query names in this instance.

Methods

ContainsKey(String)

Determines whether the QueryCollection contains a specific key.

GetEnumerator()

Returns an enumerator that iterates through a collection.

TryGetValue(String, StringValues)

Retrieves a value from the collection.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<KeyValuePair<String,StringValues>>.GetEnumerator()

Returns an enumerator that iterates through a collection.

Applies to