Class QueryStringCollection
Provides a collection of string values that is equivalent to a query string of an Uri. Implements the NameValueCollection
public class QueryStringCollection : NameValueCollection, ICollection, IDeserializationCallback, ISerializable, IReadOnlyCollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, IEnumerable
- Inheritance
-
QueryStringCollection
- Implements
- Inherited Members
Constructors
QueryStringCollection()
Initializes a new instance of the QueryStringCollection class.
public QueryStringCollection()
QueryStringCollection(QueryStringCollection)
Initializes a new instance of the QueryStringCollection class.
public QueryStringCollection(QueryStringCollection qsc)
Parameters
qsc
QueryStringCollectionThe QueryStringCollection to copy to the new QueryStringCollection instance.
QueryStringCollection(string, bool)
Initializes a new instance of the QueryStringCollection class.
public QueryStringCollection(string query, bool urlDecode = false)
Parameters
query
stringThe query string of an Uri.
urlDecode
boolSpecify
true
to decode thequery
that has been encoded for transmission in a URL; otherwise,false
.
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
Returns
- IEnumerator<KeyValuePair<string, string>>
An enumerator that can be used to iterate through the collection.
ToString()
Returns a string that represents this instance.
public override string ToString()