ABTestURLHelperTryRemovePresentationURLAnchorAndQuery Method (String, SiteInfo, String) |
Note: This API is now obsolete.
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 [ObsoleteAttribute("ABTestURLHelper.TryRemovePresentationURLAnchorAndQuery(string, SiteInfoIdentifier, out string) instead.")]
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
Site 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