DocumentationContext.ToScopedTopic Method
- Namespace
- Kampute.DocToolkit
- Assembly
- Kampute.DocToolkit.dll
Definition
Creates a contextual reference to the specified topic.
protected virtual TopicModel ToScopedTopic(ITopic topic)Parameters
topicITopic- The topic to scope.
Returns
- TopicModel
- A TopicModel representing the scoped topic.
Exceptions
- ArgumentNullException
- Thrown when
topicisnull.

Override this method in derived classes to customize how topics are scoped to contexts, for example, to apply additional properties or metadata to the topic based on the context.