AddressingStrategy.CreateAddressFromPath Method
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
Definition
Builds the address for the specified path without extension and the optional URL suffix.
protected virtual IResourceAddress CreateAddressFromPath(string pathWithoutExtension, string fragmentIdentifier = null)Parameters
pathWithoutExtensionstring- The path without the file extension.
fragmentIdentifierstring optional- The optional fragment identifier to append to the URL.
Returns
- IResourceAddress
- A IResourceAddress instance representing the address.
Exceptions
- ArgumentException
- Thrown when
pathWithoutExtensionisnullor empty.
