TopicModel.Url Property

Namespace
Kampute.DocToolkit.Models
Assembly
  • Kampute.DocToolkit.dll

Definition

Gets the URL of the topic.
public Uri Url { get; }

Property Value

Uri
The URL of the topic.

Remarks

This property provides access to the location where this model's documentation can be found, either as an absolute URL or as a URL relative to the current document context.

The property value depends on the active DocumentUrlContext, which adjusts URLs based on the current document's location within the documentation hierarchy. URLs that work correctly in one document context may need different path adjustments in another.

Do not store or cache this URL value persistently. Always retrieve it when needed to ensure it correctly reflects the current active URL context. The same model may yield different URLs when accessed from different locations in the documentation.