Click or drag to resize
ABTestURLHelperTryRemovePresentationURLAnchorAndQuery Method (String, SiteInfoIdentifier, String)
Tries to parse the application-relative path from the provided url. Query string and anchor (#) are omitted.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 13.0.131
Syntax
C#
public static bool TryRemovePresentationURLAnchorAndQuery(
	string url,
	SiteInfoIdentifier site,
	out string relativeUrl
)

Parameters

url
Type: SystemString
Absolute live site URL or URL relative to presentation URL.
site
Type: CMS.DataEngineSiteInfoIdentifier
Site identifier which presentation URL corresponds with url
relativeUrl
Type: SystemString
In case of successful operation, the result is stored here.

Return Value

Type: Boolean
Returns true when given url was successfully stripped by presentation URL and query string; otherwise false.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen url or site is null.
See Also