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 on this DataMiner Agent.

bool ElementExists(DmsElementId dmsElementId)

Parameters

dmsElementId DmsElementId

The DataMiner Agent ID/element ID of the element.

Returns

bool

true if the element exists on this DataMiner Agent; otherwise, false.

Exceptions

ArgumentException

dmsElementId is invalid.

ElementExists(string)

Determines whether an element with the specified name exists on this DataMiner Agent.

bool ElementExists(string elementName)

Parameters

elementName string

The name of the element.

Returns

bool

true if the element exists on this DataMiner Agent; otherwise, false.

Exceptions

ArgumentNullException

elementName is null.

ArgumentException

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