Class NameValueCollectionExtensions
Provides extension methods for the System.Collections.Specialized.NameValueCollection class.
public static class NameValueCollectionExtensions
- Inheritance
-
objectNameValueCollectionExtensions
Methods
Add(NameValueCollection, string, object)
Adds an entry with the specified name and value to the System.Collections.Specialized.NameValueCollection.
public static void Add(this NameValueCollection collection, string name, object value)
Parameters
collectionNameValueCollectionThe name value collection.
namestringThe key of the entry to add.
valueobjectThe value of the entry to add
AddSizeConstraint(NameValueCollection, SizeConstraint)
Adds size constraint's values to the collection.
public static void AddSizeConstraint(this NameValueCollection collection, SizeConstraint constraint)
Parameters
collectionNameValueCollectionThe name value collection.
constraintSizeConstraintSize constraint.
ToQueryString(NameValueCollection)
Returns a query string that represents the collection. Uses the format: ?name1=value1&name2=value2...
public static string ToQueryString(this NameValueCollection collection)
Parameters
collectionNameValueCollectionThe name value collection.
Returns
- string