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

uriString string
The URI string to use.

Exceptions

ArgumentNullException
Thrown when uriString is null.
UriFormatException
Thrown when uriString is 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

baseUri Uri
The base URI.
relativeUri string
The relative URI string to add to the base URI.

Exceptions

ArgumentNullException
Thrown when baseUri or relativeUri is null.
UriFormatException
Thrown when the combination of baseUri and relativeUri is 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

baseUri Uri
The base URI.
relativeUri Uri
The relative URI to add to the base URI.

Exceptions

ArgumentNullException
Thrown when baseUri or relativeUri is null.
UriFormatException
Thrown when the combination of baseUri and relativeUri is 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

uriString string
The URI string to use.
uriKind UriKind
The type of the URI in uriString.

Exceptions

ArgumentNullException
Thrown when uriString is null.
ArgumentException
Thrown when uriKind is invalid.
UriFormatException
Thrown when uriString is 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.