AdHocTopic Constructor

Namespace
Kampute.DocToolkit.Topics
Assembly
  • Kampute.DocToolkit.dll

Definition

Initializes a new instance of the AdHocTopic class.
public AdHocTopic(string id, Action<MarkupWriter, IDocumentationContext> contentWriter)

Parameters

id string
The unique identifier of the topic among its siblings, typically used for URLs or filenames.
contentWriter Action<MarkupWriter, IDocumentationContext>
The delegate to write the content of the topic.

Exceptions

ArgumentException
Thrown when id is null, whitespace, or contains invalid characters.
ArgumentNullException
Thrown when contentWriter is null.