Uri.setFragment

bool setFragment(string fragment = null)

Sets the fragment string in the URI. Use a value of null in fragment to unset the fragment string.

Parameters

fragmentThe fragment string to set.

Returns

true if the fragment was set/unset successfully.