AddressingStrategy.CreateAddressFromPathSegments Method
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
Definition
Creates a resource address from the specified path segments and an optional URL suffix.
protected IResourceAddress CreateAddressFromPathSegments(IEnumerable<string> pathSegments, string fragmentIdentifier = null)Parameters
pathSegmentsIEnumerable<string>- The segments that make up the path.
fragmentIdentifierstring optional- The optional fragment identifier to append to the URL.
Returns
- IResourceAddress
- A IResourceAddress instance representing the address.
Exceptions
- ArgumentNullException
- Thrown when
pathSegmentsisnull. - ArgumentException
- Thrown when
pathSegmentsis empty or contains only empty segments.
