TopicCollection.TryFindBySubpath Method
- Namespace
- Kampute.DocToolkit.Collections
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to find a file-backed topic in the topic hierarchy by its subpaths.
public bool TryFindBySubpath(string filePath, [NotNullWhen(true)] out TopicModel topic)Parameters
filePathstring- The file path or subpath of the topic to lookup.
topicTopicModel- When this method returns, contains the topic that uniquely matches the specified file path or subpath; otherwise,
nullif no match or if ambiguous.
Returns
Exceptions
- ArgumentException
- Thrown when
filePathisnullor empty.
