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.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax 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:
BooleanSee Also