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
idstring- The unique identifier of the topic among its siblings, typically used for URLs or filenames.
contentWriterAction<MarkupWriter, IDocumentationContext>- The delegate to write the content of the topic.
Exceptions
- ArgumentException
- Thrown when
idisnull, whitespace, or contains invalid characters. - ArgumentNullException
- Thrown when
contentWriterisnull.
