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

id string
The unqualified identifier the topic to lookup.
topic TopicModel
When this method returns, contains the topic that uniquely matches the specified identifier; otherwise, null if no match or if ambiguous.

Returns

bool
true if a unique matching topic was found; otherwise, false.

Exceptions

ArgumentException
Thrown when id is null or empty.