Click or drag to resize
AbstractStockHelper<THelper>.ExecuteWithEmptyStorage 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: 10.0.0
Syntax
C#
public static void ExecuteWithEmptyStorage(
	Action action,
	string key,
	bool caseSensitive = true
)

Parameters

action
Type: System.Action
Action to execute
key
Type: System.String
Storage key
caseSensitive (Optional)
Type: System.Boolean
If true, the key is case sensitive, otherwise key is converted to lowercase before use
See Also