Share via


Uri.Query 屬性

定義

取得統一資源標識碼 (URI 的查詢字串元件,) 儲存在此 Uri 實例中。

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

屬性值

String

Platform::String

winrt::hstring

查詢字串。

備註

查詢會報告統一資源標識碼 (URI) 的查詢部分,而子傳遞器 (& 字元) 和索引鍵/值分隔符 (=) 全都會回報為該字元串中的原狀。 QueryParsed 會 剖析此字串,並建立索引鍵/值組的對應。 此對應會以 WwwFormUrlDecoder 物件傳回。

適用於