Table of Contents

Method ElementExists

Namespace
Skyline.DataMiner.Core.DataMinerSystem.Common
Assembly
Skyline.DataMiner.Core.DataMinerSystem.Common.dll

ElementExists(DmsElementId)

Determines whether an element with the specified DataMiner Agent ID/element ID exists in the DataMiner System.

bool ElementExists(DmsElementId dmsElementId)

Parameters

dmsElementId DmsElementId

The DataMiner Agent ID/element ID of the element.

Returns

bool

true if the element exists; otherwise, false.

ElementExists(string)

Determines whether an element with the specified name exists in the DataMiner System.

bool ElementExists(string elementName)

Parameters

elementName string

The name of the element.

Returns

bool

true if the element exists; otherwise, false.

Exceptions

ArgumentNullException

elementName is null.

ArgumentException

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