TopicCollection.TryGetByFilePath Method
- Namespace
- Kampute.DocToolkit.Collections
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to lookup a file-backed topic in the topic hierarchy by its full path.
public 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.
Returns
Exceptions
- ArgumentNullException
- Thrown when
filePathisnull.

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