bool DashboardSlidesDelete(string mon, DashboardSlide tArg)
mon. Moniker for working with information panel slides.
tArg. Operation execution parameters.
The DashboardSlidesDelete operation deletes information panel slide.
To execute the operation, in the mon field specify moniker of opened information panel instance with the !Slides postfix, and in the tArg.k field specify the key of deleted slide. The moniker can be obtained on executing the OpenDashboard operation.
The operation results in the logical true if the slide was deleted successfully.
Below is the example of deleting information panel slide. The request contains moniker for working with slides and the key of deleted slide. The response contains whether the slide was deleted successfully.
{
"DashboardSlidesDelete" :
{
"mon" : "NPIEIDPOHJAFGOAELKELIPCKGACGDODEJKMKLMAKBEHEPNNL!M!S!PNNJOPHPOHJAFGOAEICILHADAKIJGHMLEMLEPKLENIMMHAMNE!Slides",
"tArg" :
{
"k" : "3"
}
}
}
{
"DashboardSlidesDeleteResult" : "1"
}
public static bool DashboardSlidesDelete(string moniker, uint slideKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new DashboardSlidesDelete()
{
tArg = new DashboardSlide()
{
k = slideKey
},
// Moniker for working with information panel slides
mon = moniker + "!Slides"
};
// Delete slide
var result = somClient.DashboardSlidesDelete(tDel);
return result;
}
See also: