AddQueryAndFragment(string, string) Method
Adds a query and/or fragment to a URL or path.

Syntax

public virtual string AddQueryAndFragment(string path, string queryAndFragment)

Parameters

Name Type Description
path string The path or URL.
queryAndFragment string The query and/or fragment to add. If a value is provided for this parameter and it does not start with "?" or "#" then it will be assumed a query and a "?" will be prefixed.

Return Value

Type Description
string The path or URL with an appended query and/or fragment.