Method GetElement
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
GetElement(DmsElementId)
Retrieves the element with the specified the DataMiner Agent ID and element ID from this DataMiner Agent.
IDmsElement GetElement(DmsElementId dmsElementId)
Parameters
dmsElementId
DmsElementIdThe Agent ID/element ID of the element.
Returns
- IDmsElement
The element with the specified DataMiner Agent ID and element ID.
Exceptions
- ArgumentException
dmsElementId
is invalid.- ElementNotFoundException
The element was not found on this DataMiner Agent.
GetElement(string)
Retrieves the element with the specified name from this DataMiner Agent.
IDmsElement GetElement(string elementName)
Parameters
elementName
stringThe name of the element.
Returns
- IDmsElement
The element with the specified element name.
Exceptions
- ArgumentNullException
elementName
is null.- ArgumentException
elementName
is the empty string ("") or white space.- ElementNotFoundException
The element with the specified name was not found on this DataMiner Agent.