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
elementIActionableElementThe element in the redundancy group.
inMaintenancebooltrueto 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
namestringThe name of the element in the redundancy group.
inMaintenancebooltrueto 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
dmaidintThe DataMiner Agent ID of the element in the redundancy group.
eidintThe ID of the element in the redundancy group.
inMaintenancebooltrueto set in maintenance mode; otherwise,false(normal mode).
Examples
var redundancyGroup = engine.FindRedundancyGroup("MyRedundancyGroup");
redundancyGroup.SetMaintenanceMode(200, 4000, true);