Table of Contents

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 string

The path, i.e. /mypage/my-awesome-product-prod12.

resolveResult UrlResolveResult

The UrlResolveResult contains ResolvedQuerystring and RemainingPartOfPath.

Returns

bool

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 NameValueCollection

The query string - i.e. 'id=123&productid=prod12'.

resolvedPath UrlNode

The resolved path as a urlnode resulting in /my-awesome-product-prod12.

Returns

bool
To top