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
topLevelTopicITopic- The topic to add.
Returns
- bool
trueif the topic was added successfully; otherwise,false, indicating that a topic with the same identifier already exists.
Exceptions
- ArgumentNullException
- Thrown when
topLevelTopicisnull. - ArgumentException
- Thrown when
topLevelTopichas a parent topic, indicating that it is not a top-level topic.
