Click or drag to resize
URLHelperCheckPrefix Method
Checks the URL prefix. If the prefix is present, returns true and removes the prefix from the URL if removePrefix is true.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static bool CheckPrefix(
	ref string path,
	string prefix,
	bool removePrefix
)

Parameters

path
Type: SystemString
Path to check
prefix
Type: SystemString
Prefix to check
removePrefix
Type: SystemBoolean
Remove the prefix if matches

Return Value

Type: Boolean
See Also