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

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

Parameters

first
Type: SystemString
First domain name
second
Type: SystemString
Second domain name
checkPort
Type: SystemBoolean
If true, port is checked

Return Value

Type: Boolean
See Also