bool DashboardControlsDelete(string mon, DashboardControl arg)
mon. Moniker for working with information panel controls.
tArg. Deleted control.
The DashboardControlsDelete operation deletes an information panel control.
To execute the operation, in the mon field specify moniker of opened information panel instance with the !Controls postfix, and in the arg.k field specify the key of the deleted control. The moniker can be obtained on executing the OpenDashboard operation.
The operation results in the logical true if the control was deleted successfully.
Below is the example of deleting the control. The request contains moniker for working with controls. The response contains whether the control was deleted successfully.
{
"DashboardControlsDelete" :
{
"mon" : "DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls",
"arg" :
{
"k" : "2"
}
}
}
{
"DashboardControlsDeleteResult" : "1"
}
public static bool DashboardControlsDelete(string moniker, uint controlKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new DashboardControlsDelete()
{
arg = new DashboardControl()
{
k = controlKey
},
mon = moniker + "!Controls"
};
// Delete control
var result = somClient.DashboardControlsDelete(tDel);
return result;
}
See also: