RawUri Constructors
- Namespace
- Kampute.DocToolkit.Support
- Assembly
- Kampute.DocToolkit.dll
| RawUri(string) | Initializes a new instance of the RawUri class using the specified URI string. |
| RawUri(Uri, string) | Initializes a new instance of the RawUri class with the specified base URI and relative URI string. |
| RawUri(Uri, Uri) | Initializes a new instance of the RawUri class with the specified base URI and relative URI. |
| RawUri(string, UriKind) | Initializes a new instance of the RawUri class using the specified URI string and URI kind. |
RawUri(string)
Initializes a new instance of the RawUri class using the specified URI string.
public RawUri(string uriString)Parameters
uriStringstring- The URI string to use.
Exceptions
- ArgumentNullException
- Thrown when
uriStringisnull. - UriFormatException
- Thrown when
uriStringis not a valid URI.
Remarks
The characters in the URI string that have a reserved meaning in the requested URI components must be properly escaped.
RawUri(Uri, string)
Initializes a new instance of the RawUri class with the specified base URI and relative URI string.
public RawUri(Uri baseUri, string relativeUri)Parameters
Exceptions
- ArgumentNullException
- Thrown when
baseUriorrelativeUriisnull. - UriFormatException
- Thrown when the combination of
baseUriandrelativeUriis not a valid URI.
Remarks
The characters in the relative URI string that have a reserved meaning in the requested URI components must be properly escaped.
RawUri(Uri, Uri)
Initializes a new instance of the RawUri class with the specified base URI and relative URI.
public RawUri(Uri baseUri, Uri relativeUri)Parameters
Exceptions
- ArgumentNullException
- Thrown when
baseUriorrelativeUriisnull. - UriFormatException
- Thrown when the combination of
baseUriandrelativeUriis not a valid URI.
RawUri(string, UriKind)
Initializes a new instance of the RawUri class using the specified URI string and URI kind.
public RawUri(string uriString, UriKind uriKind)Parameters
Exceptions
- ArgumentNullException
- Thrown when
uriStringisnull. - ArgumentException
- Thrown when
uriKindis invalid. - UriFormatException
- Thrown when
uriStringis not a valid URI of the specified kind.
Remarks
The characters in the URI string that have a reserved meaning in the requested URI components must be properly escaped.
