Method IsInMaintenance
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
IsInMaintenance(IActionableElement)
Gets a value indicating whether the specified element in the redundancy group is in maintenance mode.
public bool IsInMaintenance(IActionableElement element)
Parameters
elementIActionableElementThe element in the redundancy group.
Returns
- bool
trueif the specified element is in maintenance mode; otherwise,false.
Examples
var redundancyGroup = engine.FindRedundancyGroup("MyRedundancyGroup");
var mainElement = engine.FindElement("MyMainElement");
bool isInMaintenance = redundancyGroup.IsInMaintenance(mainElement);
Exceptions
- ArgumentException
The redundancy group was not found.
- ArgumentException
The element was not found in this redundancy group.
IsInMaintenance(string)
Gets a value indicating whether the specified element in the redundancy group is in maintenance mode.
public bool IsInMaintenance(string name)
Parameters
namestringThe name of the element in the redundancy group.
Returns
- bool
trueif the specified element is in maintenance mode; otherwise,false.
Examples
var redundancyGroup = engine.FindRedundancyGroup("MyRedundancyGroup");
bool isInMaintenance = redundancyGroup.IsInMaintenance("MyMainElement");
Exceptions
- ArgumentException
The redundancy group was not found.
- ArgumentException
The element was not found in this redundancy group.
IsInMaintenance(int, int)
Gets a value indicating whether the specified element in the redundancy group is in maintenance mode.
public bool IsInMaintenance(int dmaid, int eid)
Parameters
dmaidintThe DataMiner Agent ID of the element in the redundancy group.
eidintThe element ID of the element in the redundancy group.
Returns
- bool
trueif the specified element is in maintenance mode; otherwise,false.
Examples
var redundancyGroup = engine.FindRedundancyGroup("MyRedundancyGroup");
bool isInMaintenance = redundancyGroup.IsInMaintenance(200, 4000);
Exceptions
- ArgumentException
The redundancy group was not found.
- ArgumentException
The element was not found in this redundancy group.