UriHelper.SplitPathAndSuffix Method
- Namespace
- Kampute.DocToolkit.Support
- Assembly
- Kampute.DocToolkit.dll
Definition
Splits a URI string into its path and suffix components.
public static ValueTuple<string, string> SplitPathAndSuffix(string uriString)Parameters
uriStringstring- The URI string to split.
Returns
- ValueTuple<string, string>
- A tuple where the first item is the path portion of the URI, and the second item is the suffix containing any query string and/or fragment.
Exceptions
- ArgumentNullException
- Thrown when
uriStringisnull.
Remarks
This method expects the input to be a valid relative URI string. If the input does not meet this expectation, the returned value may not be meaningful.
