WwwFormUrlDecoder(String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and initializes a new instance of the WwwFormUrlDecoder class.
public:
WwwFormUrlDecoder(Platform::String ^ query);
WwwFormUrlDecoder(winrt::hstring const& query);
public WwwFormUrlDecoder(string query);
function WwwFormUrlDecoder(query)
Public Sub New (query As String)
Parameters
- query
-
String
Platform::String
winrt::hstring
The URL to parse.
Remarks
The query string must start with a '?' character.
Any '&' character encountered represents a new name-value pair. If there is a '=' character present in the string, the substring to the left of the '=' character is the name and the right substring is the value.
The constructor doesn't do much validation on the string beyond verifying that it isn't null or the wrong type. If your input doesn't correctly represent a query string that starts with '?' and contains name-value pairs separated by '&', the collection contents are empty or invalid, and calls to GetFirstValueByName won't have the expected result.
URL-encoded characters are automatically decoded before the value is added to a name-value pair.