TopicSource.AddSubtopic Method
- Namespace
- Kampute.DocToolkit.Topics.Abstracts
- Assembly
- Kampute.DocToolkit.dll
Definition
Adds a subtopic to the current topic.
public void AddSubtopic(IMutableTopic subtopic)Parameters
subtopicIMutableTopic- The subtopic to add.
Exceptions
- ArgumentNullException
- Thrown when
subtopicisnull. - ArgumentException
- Thrown when a subtopic with the same identifier already exists in the current topic.
- InvalidOperationException
- Thrown when adding the subtopic would create a circular reference.

If the subtopic is already a child of another topic, it will be moved from that topic to the current topic.