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
element
IActionableElementThe element in the redundancy group.
Returns
- bool
true
if 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
name
stringThe name of the element in the redundancy group.
Returns
- bool
true
if 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
dmaid
intThe DataMiner Agent ID of the element in the redundancy group.
eid
intThe element ID of the element in the redundancy group.
Returns
- bool
true
if 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.