AbstractStockHelperTHelperExecuteWithEmptyStorage Method |
Executes the given action while ensuring the empty storage under the given key for the time being of the action.
Restores original storage after the action.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax public static void ExecuteWithEmptyStorage(
Action action,
string key,
bool caseSensitive = true
)
Parameters
- action
- Type: SystemAction
Action to execute - key
- Type: SystemString
Storage key - caseSensitive (Optional)
- Type: SystemBoolean
If true, the key is case sensitive, otherwise key is converted to lowercase before use
See Also