RoutingExtensions.TryGetUrlByCodeReference Method
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to retrieves the documentation URL for the specified code reference.
public static bool TryGetUrlByCodeReference(this IApiDocUrlProvider urlProvider, string cref, [NotNullWhen(true)] out Uri url)Parameters
urlProviderIApiDocUrlProvider- The URL provider to use for resolving the URL.
crefstring- The code reference to resolve.
urlUri- When this method returns, contains the URL of the code reference if found; otherwise,
null. This parameter is passed uninitialized.
Returns
Exceptions
- ArgumentNullException
- Thrown when
urlProviderorcrefisnull.
