Class UrlQueryStringProvider
- Namespace
- Dynamicweb.Frontend.UrlHandling
- Assembly
- Dynamicweb.dll
A provider that can convert a querystring to a path and back again without using preloaded data in the URL index. It is the responsibility of the provider to implement a pattern that ensures uniqueness of the URL.
public abstract class UrlQueryStringProvider
- Inheritance
-
UrlQueryStringProvider
- Derived
- Inherited Members
Methods
GetUrlQueryStringProviders()
Gets a collection of all querystring providers
public static IEnumerable<UrlQueryStringProvider> GetUrlQueryStringProviders()
Returns
TryResolvePath(string, out UrlResolveResult?)
Tries to resolve a path into a querystring.
public virtual bool TryResolvePath(string path, out UrlResolveResult? resolveResult)
Parameters
pathstringThe path, i.e. /mypage/my-awesome-product-prod12.
resolveResultUrlResolveResultThe UrlResolveResult contains ResolvedQuerystring and RemainingPartOfPath.
Returns
TryResolveQueryString(NameValueCollection, out UrlNode?)
Tries the resolve a query string to a url path.
public abstract bool TryResolveQueryString(NameValueCollection queryString, out UrlNode? resolvedPath)
Parameters
queryStringNameValueCollectionThe query string - i.e. 'id=123&productid=prod12'.
resolvedPathUrlNodeThe resolved path as a urlnode resulting in /my-awesome-product-prod12.