Table of Contents

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

dmsElementId DmsElementId

The DataMiner Agent ID/element ID of the element.

Returns

IDmsElement

The element with the specified ID.

Exceptions

ArgumentException

dmsElementId is 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

elementName string

The name of the element.

Returns

IDmsElement

The element with the specified name.

Exceptions

ArgumentNullException

elementName is null.

ArgumentException

elementName is the empty string ("") or white space.

ElementNotFoundException

No element with the specified name exists in the DataMiner system.