Method GetElement
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
GetElement(DmsElementId)
Retrieves the element with the specified element ID.
IDmsElement GetElement(DmsElementId dmsElementId)
Parameters
dmsElementIdDmsElementIdThe DataMiner Agent ID/element ID of the element.
Returns
- IDmsElement
The element with the specified ID.
Exceptions
- ArgumentException
dmsElementIdis empty.- ElementNotFoundException
No element with the specified ID exists in the DataMiner System.
GetElement(string)
Retrieves the element with the specified element name.
IDmsElement GetElement(string elementName)
Parameters
elementNamestringThe name of the element.
Returns
- IDmsElement
The element with the specified name.
Exceptions
- ArgumentNullException
elementNameis null.- ArgumentException
elementNameis the empty string ("") or white space.- ElementNotFoundException
No element with the specified name exists in the DataMiner system.