TopicModel Constructor

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

Definition

Initializes a new instance of the TopicModel class with the specified context and top-level source topic.
public TopicModel(IDocumentationContext context, ITopic source)

Parameters

context IDocumentationContext
The documentation context associated with the topic.
source ITopic
The source of the topic which must be a top-level topic without a parent.

Exceptions

ArgumentNullException
Thrown when context or source is null.
ArgumentException
Thrown when the source has a parent topic, indicating it is not a top-level topic.