Click or drag to resize
URLHelperCheckPrefixes Method
Checks the URL prefixes. If one of the the prefixes 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: 12.0.0
Syntax
C#
public static bool CheckPrefixes(
	ref string path,
	string[] prefixes,
	bool removePrefix
)

Parameters

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

Return Value

Type: Boolean
See Also