A string containing the query component of the URI represented by the current instance.
The Uri.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.
Note In version 1.0 and 1.1 of the .NET Framework, setting the UriBuilder.Fragment property to any value, including null, cleared the UriBuilder.Query property, and setting the UriBuilder.Fragment property to null or to string.Empty cleared the property. In version 2.0, however, the UriBuilder.Fragment and UriBuilder.Query properties are independent.
Note Do not append a string directly to this property. If the length of UriBuilder.Query is greater than 1, retrieve the property value as a string, remove the leading question mark, append the new query string, and set the property with the combined string.