public void UnsetAllUsersVar(string varName, bool persisted = true)
The string name of the global variable
True
To get, set, or unset persisted global variables, set to true or leave empty.
To get, set, or unset temporary/non-persisted global variables, set to false.
void
using System;
public class CPHInline
{
public bool Execute()
{
//Please be extremely careful with this method
//Only possible to restore with back-up
//Unset all(!) persisted user variable called "myString"
CPH.UnsetAllUsersVar("myString"); CPH.UnsetAllUsersVar("myString", true);
//Unset all(!) non-persisted user variable called "myString"
CPH.UnsetAllUsersVar("myString", false); return true;
}
}