TopicCollection.TryFindByPartialId Method
- Namespace
- Kampute.DocToolkit.Collections
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to find a topic in the topic hierarchy by its unqualified identifier.
public bool TryFindByPartialId(string id, [NotNullWhen(true)] out TopicModel topic)Parameters
idstring- The unqualified identifier the topic to lookup.
topicTopicModel- When this method returns, contains the topic that uniquely matches the specified identifier; otherwise,
nullif no match or if ambiguous.
Returns
Exceptions
- ArgumentException
- Thrown when
idisnullor empty.
