UriHelper.WithoutFragment Method
- Namespace
- Kampute.DocToolkit.Support
- Assembly
- Kampute.DocToolkit.dll
Definition
Creates a new Uri with the fragment removed.
public static Uri WithoutFragment(this Uri uri)Parameters
Returns
Exceptions
- ArgumentNullException
- Thrown when
uriisnull.
Remarks
This method removes any fragment identifier from the URI. If the URI does not have a fragment, the original URI is returned unchanged.
