Splits a ampersand-separated list of key-value pairs, decodes the keys and
values, and adds them to a NameValueCollection. Keys and values are separated
by equals signs.

C# | Visual Basic | Visual C++ |
public static NameValueCollection SplitAndDecode( string input )
Public Shared Function SplitAndDecode ( _ input As String _ ) As NameValueCollection
public: static NameValueCollection^ SplitAndDecode( String^ input )

- input (String)
- The key-value pair list

A name value collection, which may be empty.

Exception | Condition |
---|---|
FormatException |
If the string is not a series of key-value pairs separated by ampersands,
or if one of the keys is null or empty, or if one of the keys or values is
not properly encoded.
|