Method SetMaintenanceMode
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
SetMaintenanceMode(IActionableElement, bool)
Sets the maintenance mode of the specified element in the redundancy group.
public void SetMaintenanceMode(IActionableElement element, bool inMaintenance)
Parameters
element
IActionableElementThe element in the redundancy group.
inMaintenance
booltrue
to set in maintenance mode; otherwise,false
(normal mode).
Examples
var redundancyGroup = engine.FindRedundancyGroup("MyRedundancyGroup");
var mainElement = engine.FindElement("MyMainElement");
redundancyGroup.SetMaintenanceMode(mainElement, true);
SetMaintenanceMode(string, bool)
Sets the maintenance mode of the specified element in the redundancy group.
public void SetMaintenanceMode(string name, bool inMaintenance)
Parameters
name
stringThe name of the element in the redundancy group.
inMaintenance
booltrue
to set in maintenance mode; otherwise,false
(normal mode).
Examples
var redundancyGroup = engine.FindRedundancyGroup("MyRedundancyGroup");
redundancyGroup.SetMaintenanceMode("MyMainElement", true);
SetMaintenanceMode(int, int, bool)
Sets the maintenance mode of the specified element in the redundancy group.
public void SetMaintenanceMode(int dmaid, int eid, bool inMaintenance)
Parameters
dmaid
intThe DataMiner Agent ID of the element in the redundancy group.
eid
intThe ID of the element in the redundancy group.
inMaintenance
booltrue
to set in maintenance mode; otherwise,false
(normal mode).
Examples
var redundancyGroup = engine.FindRedundancyGroup("MyRedundancyGroup");
redundancyGroup.SetMaintenanceMode(200, 4000, true);