Click or drag to resize
URLHelper.DomainMatch Method
Returns true if the given domain names match.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static bool DomainMatch(
	string first,
	string second,
	bool checkPort
)

Parameters

first
Type: System.String
First domain name
second
Type: System.String
Second domain name
checkPort
Type: System.Boolean
If true, port is checked

Return Value

Type: Boolean
See Also