Useful for parsing and editing querystrings inside of non-Web code that doesn't have easy access to the HttpUtility class.
public class UrlEncodingParser : NameValueCollection
Member | Description | |
---|---|---|
![]() |
Constructor | Always pass in a UrlEncoded data or a URL to parse from unless you are creating a new one from scratch. |
![]() |
Add | Inherited from System.Collections.Specialized.NameValueCollection public void Add(NameValueCollection c);
public virtual void Add(string name,
string value); |
![]() |
Clear | Inherited from System.Collections.Specialized.NameValueCollection public virtual void Clear();
|
![]() |
CopyTo | Inherited from System.Collections.Specialized.NameValueCollection public void CopyTo(Array dest,
int index); |
![]() |
Equals | Inherited from System.Object public virtual bool Equals(object obj);
|
![]() |
Get | Inherited from System.Collections.Specialized.NameValueCollection public virtual string Get(string name);
public virtual string Get(int index);
|
![]() |
GetEnumerator | Inherited from System.Collections.Specialized.NameObjectCollectionBase public virtual IEnumerator GetEnumerator();
|
![]() |
GetHashCode | Inherited from System.Object public virtual int GetHashCode();
|
![]() |
GetKey | Inherited from System.Collections.Specialized.NameValueCollection public virtual string GetKey(int index);
|
![]() |
GetObjectData | Inherited from System.Collections.Specialized.NameObjectCollectionBase public virtual void GetObjectData(SerializationInfo info,
StreamingContext context); |
![]() |
GetType | Inherited from System.Object public Type GetType();
|
![]() |
GetValues | Inherited from System.Collections.Specialized.NameValueCollection public virtual String[] GetValues(string name);
public virtual String[] GetValues(int index);
|
![]() |
HasKeys | Inherited from System.Collections.Specialized.NameValueCollection public bool HasKeys();
|
![]() |
OnDeserialization | Inherited from System.Collections.Specialized.NameObjectCollectionBase public virtual void OnDeserialization(object sender);
|
![]() |
Parse | Parses the query string into the internal dictionary and optionally also returns this dictionary public NameValueCollection Parse(string query);
|
![]() |
Remove | Inherited from System.Collections.Specialized.NameValueCollection public virtual void Remove(string name);
|
![]() |
Set | Inherited from System.Collections.Specialized.NameValueCollection public virtual void Set(string name,
string value); |
![]() |
SetValues | Assigns multiple values to the same key public void SetValues(string key,
IEnumerable<String> values); |
![]() |
ToString | Writes out the urlencoded data/query string or full URL based on the internally set values. public virtual string ToString();
|
![]() |
AllKeys | Inherited from System.Collections.Specialized.NameValueCollection |
![]() |
Count | Inherited from System.Collections.Specialized.NameObjectCollectionBase |
![]() |
Item | Inherited from System.Collections.Specialized.NameValueCollection |
![]() |
Keys | Inherited from System.Collections.Specialized.NameObjectCollectionBase |