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