DocumentAddressProvider.TryGetTopicFile Method

Namespace
Kampute.DocToolkit.Routing
Assembly
  • Kampute.DocToolkit.dll

Definition

Attempts to retrieve the path of the file for the specified topic.
public virtual bool TryGetTopicFile(ITopic topic, [NotNullWhen(true)] out string relativePath)

Parameters

topic ITopic
The topic to retrieve the file path for.
relativePath string
When this method returns, contains the relative file path the topic if found; otherwise, null. This parameter is passed uninitialized.

Returns

bool
true if the file path of the topic is found; otherwise, false.