TopicCollection.Add Method

Namespace
Kampute.DocToolkit.Collections
Assembly
  • Kampute.DocToolkit.dll

Definition

Adds a top-level topic and all its subtopics to the collection.
public bool Add(ITopic topLevelTopic)

Parameters

topLevelTopic ITopic
The topic to add.

Returns

bool
true if the topic was added successfully; otherwise, false, indicating that a topic with the same identifier already exists.

Exceptions

ArgumentNullException
Thrown when topLevelTopic is null.
ArgumentException
Thrown when topLevelTopic has a parent topic, indicating that it is not a top-level topic.