PathToUrlMapper.Add Method

Namespace
Kampute.DocToolkit.Routing
Assembly
  • Kampute.DocToolkit.dll

Definition

Adds a URL mapping for the specified source path.
public bool Add(string path, Uri url)

Parameters

path string
The path to be replaced.
url Uri
The URL to use as replacement.

Returns

bool
true if the mapping was successfully added; otherwise, false.

Exceptions

ArgumentException
Thrown when path is null or empty.
ArgumentNullException
Thrown when url is null.