IReadOnlyTopicCollection.TryGetById Method
- Namespace
- Kampute.DocToolkit.Collections
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to lookup a topic in the topic hierarchy by its qualified identifier.
bool TryGetById(string id, [NotNullWhen(true)] out TopicModel topic)Parameters
idstring- The qualified identifier of the topic to lookup.
topicTopicModel- When this method returns, contains the topic if found; otherwise,
null.

The identifier must be fully qualified, which means it should include the identifier of all parent topics in the hierarchy separated by slashes ('/').