UrlReference Constructors
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
| UrlReference(DocumentUrlContext, string, Uri) | Initializes a new instance of the UrlReference class using the specified scope. |
| UrlReference(IDocumentModel, string, string, Uri) | Initializes a new instance of the UrlReference class using the referencing model and base directory. |
UrlReference(DocumentUrlContext, string, Uri)
Initializes a new instance of the UrlReference class using the specified scope.
public UrlReference(DocumentUrlContext scope, string sourceUrl, Uri targetUrl = null)Parameters
scopeDocumentUrlContext- The scope in which the URL is referenced.
sourceUrlstring- The original URL string from the documentation source (e.g., XML comment or topic).
targetUrlUri optional- The URI corresponding to the
sourceUrlin the generated documentation, if available.
Exceptions
- ArgumentNullException
- Thrown when
scopeorsourceUrlisnull. - ArgumentException
- Thrown when the
scopedoes not have an associated documentation model.
UrlReference(IDocumentModel, string, string, Uri)
Initializes a new instance of the UrlReference class using the referencing model and base directory.
public UrlReference(
IDocumentModel referencingModel,
string baseDirectory,
string sourceUrl,
Uri targetUrl = null)Parameters
referencingModelIDocumentModel- The documentation model in which the URL is referenced.
baseDirectorystring- The directory path of the referencing model's documentation page, relative to the documentation root.
sourceUrlstring- The original URL string from the documentation source (e.g., XML comment or topic).
targetUrlUri optional- The URI corresponding to the
sourceUrlin the generated documentation, if available.
Exceptions
- ArgumentNullException
- Thrown when
referencingModel,baseDirectory, orsourceUrlisnull.
