RoutingExtensions.TryResolveAddressByCodeReference Method
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to resolve the address of the documentation content for the specified code reference.
public static bool TryResolveAddressByCodeReference(this IDocumentAddressingStrategy strategy, string cref, [NotNullWhen(true)] out IResourceAddress address)Parameters
strategyIDocumentAddressingStrategy- The addressing strategy to use for resolving the address.
crefstring- The code reference to resolve.
addressIResourceAddress- When this method returns, contains the address of the documentation content for the specified code reference, or
nullif the address could not be resolved. This parameter is passed uninitialized.
Returns
Exceptions
- ArgumentNullException
- Thrown when
strategyorcrefisnull.
