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
TryResolvePath(string, out UrlResolveResult)
Tries to resolve a path into a querystring.
public virtual bool TryResolvePath(string path, out UrlResolveResult resolveResult)
Parameters
path
stringThe path, i.e. /mypage/my-awesome-product-prod12.
resolveResult
UrlResolveResultThe 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
queryString
NameValueCollectionThe query string - i.e. 'id=123&productid=prod12'.
resolvedPath
UrlNodeThe resolved path as a urlnode resulting in /my-awesome-product-prod12.