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
- dmsElementIdDmsElementId
- The Agent ID/element ID of the element. 
Returns
- IDmsElement
- The element with the specified DataMiner Agent ID and element ID. 
Exceptions
- ArgumentException
- dmsElementIdis 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
- elementNamestring
- The name of the element. 
Returns
- IDmsElement
- The element with the specified element name. 
Exceptions
- ArgumentNullException
- elementNameis null.
- ArgumentException
- elementNameis the empty string ("") or white space.
- ElementNotFoundException
- The element with the specified name was not found on this DataMiner Agent.