Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WwwFormUrlDecoder class

Applies to Windows and Windows Phone

Parses a URL query string.

Syntax


public ref class WwwFormUrlDecoder sealed : IIterable<IWwwFormUrlDecoderEntry>,
    IVectorView<IWwwFormUrlDecoderEntry>

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

The WwwFormUrlDecoder class has these types of members:

Constructors

The WwwFormUrlDecoder class has these constructors.

ConstructorDescription
WwwFormUrlDecoder Creates and initializes a new instance of the WwwFormUrlDecoder class.

 

Methods

The WwwFormUrlDecoder class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
First [C++, JavaScript]Gets an iterator that represents the first name-value pair in the current URL query string.
GetAt [C++, JavaScript]Gets the name-value pair at the specified index in the current URL query string.
GetFirstValueByName Gets the first name-value pair that has the specified name in the current URL query string.
GetMany [C++, JavaScript]Gets name-value pairs starting at the specified index in the current URL query string.
IndexOf [C++, JavaScript]Gets a value indicating whether the specified IWwwFormUrlDecoderEntry is at the specified index in the current URL query string.

 

Properties

The WwwFormUrlDecoder class has these properties.

PropertyAccess typeDescription

Count [C#, VB]

Read-onlyGets the number of elements contained in the collection.

Item [C#, VB]

Read-onlyGets or sets the element at the specified index.

Size [C++, JavaScript]

Read-onlyGets the number of the name-value pairs in the current URL query string.

 

Remarks

Use the WwwFormUrlDecoder class to break a query string into name-value pairs, based on the number and placement of "&" symbols. Each name-value pair is represented by an IWwwFormUrlDecoderEntry object.

Collection member lists

For JavaScript, WwwFormUrlDecoder has the members shown in the member lists. In addition, WwwFormUrlDecoder supports a length property, members of Array.prototype, and using an index to access items.

Enumerating the collection in C# or Microsoft Visual Basic

WwwFormUrlDecoder is enumerable, so you can use language-specific syntax such as foreach in C# to enumerate the items in the collection. The compiler does the type-casting for you and you won't need to cast to IEnumerable<IWwwFormUrlDecoderEntry> explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast to IEnumerable<T> with an IWwwFormUrlDecoderEntry constraint.

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.winmd

See also

IWwwFormUrlDecoderEntry

 

 

Show:
© 2014 Microsoft