Click or drag to resize

UrlUtilityGetTopLevelDomain Method

Extracts the top level domain from the given URL.

Namespace:  Dynamicweb.Analytics.Utilities
Assembly:  Dynamicweb.Analytics (in Dynamicweb.Analytics.dll) Version: 2.1.4
Syntax
public static string GetTopLevelDomain(
	string url,
	bool handleCountryCodeDomain
)

Parameters

url
Type: SystemString
URL to examine.
handleCountryCodeDomain
Type: SystemBoolean
Indicates whether to append country code top-level domain (if exists).

Return Value

Type: String
The top level domain from the given URL.
See Also