IReadOnlyTopicCollection.TryGetByFilePath Method
- Namespace
- Kampute.DocToolkit.Collections
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to lookup a file-backed topic in the topic hierarchy by its exact source file path.
bool TryGetByFilePath(string filePath, [NotNullWhen(true)] out TopicModel topic)Parameters
filePathstring- The exact file path of the topic to lookup.
topicTopicModel- When this method returns, contains the topic if found; otherwise,
null.

Lookup is performed in a case-insensitive manner and directory separators can be either slash ('/') or backslash ('\').