 | 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
Syntaxpublic static string GetTopLevelDomain(
string url,
bool handleCountryCodeDomain
)
Public Shared Function GetTopLevelDomain (
url As String,
handleCountryCodeDomain As Boolean
) As String
Parameters
- url
- Type: SystemString
URL to examine. - handleCountryCodeDomain
- Type: SystemBoolean
Indicates whether to append country code top-level domain (if exists).
Return Value
Type:
StringThe top level domain from the given URL.
See Also