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
contextIDocumentationContext- The documentation context associated with the topic.
sourceITopic- The source of the topic which must be a top-level topic without a parent.
Exceptions
- ArgumentNullException
- Thrown when
contextorsourceisnull. - ArgumentException
- Thrown when the
sourcehas a parent topic, indicating it is not a top-level topic.
