HtmlAddressingOptions.AddPinnedTopic Method
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
Definition
Adds a topic to the collection of pinned topics.
public bool AddPinnedTopic(string topicId, string relativePath)Parameters
topicIdstring- The identifier of the topic to add to the pinned topics.
relativePathstring- The relative path associated with the topic.
Returns
- bool
trueif the topic was successfully added; otherwise,falseif a topic with the same name or path already exists.
Exceptions
- ArgumentException
- Thrown when
topicIdisnullor empty, or ifrelativePathis not relative or contains invalid characters.
