ABTestURLHelperTryRemovePresentationURLAnchorAndQuery Method (String, SiteInfoIdentifier, String) |
Tries to parse the application-relative path from the provided url. Query string and anchor (#) are omitted.
Namespace: CMS.OnlineMarketingAssembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 13.0.131
Syntax 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 Exception | Condition |
---|
ArgumentNullException | When url or site is null. |
See Also