RelativeToAbsoluteUrlNormalizer Constructors
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
| RelativeToAbsoluteUrlNormalizer(Uri) | Initializes a new instance of the RelativeToAbsoluteUrlNormalizer class with the specified base URL. |
| RelativeToAbsoluteUrlNormalizer(string) | Initializes a new instance of the RelativeToAbsoluteUrlNormalizer class with the specified base URL string. |
RelativeToAbsoluteUrlNormalizer(Uri)
Initializes a new instance of the RelativeToAbsoluteUrlNormalizer class with the specified base URL.
public RelativeToAbsoluteUrlNormalizer(Uri baseUrl)Parameters
baseUrlUri- The base URL to use for creating absolute URLs from relative URLs.
Exceptions
- ArgumentNullException
- Thrown when
baseUrlisnull. - ArgumentException
- Thrown when
baseUrlis not an absolute URL.
RelativeToAbsoluteUrlNormalizer(string)
Initializes a new instance of the RelativeToAbsoluteUrlNormalizer class with the specified base URL string.
public RelativeToAbsoluteUrlNormalizer(string baseUrlString)Parameters
baseUrlStringstring- The base URL to use for creating absolute URLs from relative URLs.
Exceptions
- ArgumentNullException
- Thrown when
baseUrlStringisnull. - ArgumentException
- Thrown when
baseUrlStringis not an absolute URL.
