MarkdownAddressingStrategy.IsMainTopic Method
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
Definition
Determines whether the specified topic is the main topic of the documentation.
protected bool IsMainTopic(ITopic topic)Parameters
topicITopic- The topic to check.
Returns
- bool
trueiftopicis a top-level topic whose identifier matches MarkdownAddressingOptions.MainTopicId; otherwise,false.
Exceptions
- ArgumentNullException
- Thrown when
topicisnull.
Remarks
Topic identifiers are compared case-insensitively, as the topic collection of a documentation context compares them.
