Click or drag to resize
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.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
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