Sdílet prostřednictvím


Uri.Query Property

Definition

Gets the query string component of the Uniform Resource Identifier (URI) as stored in this Uri instance.

public:
 property Platform::String ^ Query { Platform::String ^ get(); };
winrt::hstring Query();
public string Query { get; }
var string = uri.query;
Public ReadOnly Property Query As String

Property Value

String

Platform::String

winrt::hstring

The query string.

Remarks

Query reports the query portion of the Uniform Resource Identifier (URI), and the subdelimiters (& characters) and key-value separators (=) are all reported as-is in that string. QueryParsed parses this string and creates a map of key-value pairs. This map is returned as a WwwFormUrlDecoder object.

Applies to