Assembly: System (in system.dll)
'Declaration Public ReadOnly Property Query As String 'Usage Dim instance As Uri Dim value As String value = instance.Query
Property ValueA String that contains any query information included in the specified URI.
The Query property contains any query information included in the URI. Query information is separated from the path information by a question mark (?) and continues to the end of the URI. The query information returned includes the leading question mark.
The query information is escaped according to RFC 2396.
The following example writes the query ?date= today to the console.
Dim baseUri As New Uri("http://www.contoso.com/") Dim myUri As New Uri(baseUri, "catalog/shownew.htm?date=today") Console.WriteLine(myUri.Query)
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.