Click or drag to resize
ABTestURLHelperTryRemovePresentationURLAnchorAndQuery Method
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: 12.0.0
Syntax
C#
public static bool TryRemovePresentationURLAnchorAndQuery(
	string url,
	SiteInfo site,
	out string relativeUrl
)

Parameters

url
Type: SystemString
Absolute live site url or url relative to presentation url.
site
Type: CMS.SiteProviderSiteInfo
Content-Only site which SitePresentationUrl 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