Constructor DmsElementId
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
DmsElementId(string)
Initializes a new instance of the DmsElementId structure using the specified string.
public DmsElementId(string id)
Parameters
idstringString representing the system-wide element ID.
Remarks
The provided string must be formatted as follows: "DataMiner Agent ID/element ID (e.g. 400/201)".
Exceptions
- ArgumentNullException
idis null .- ArgumentException
idis the empty string ("") or white space.- ArgumentException
The ID does not match the mandatory format.
- ArgumentException
The DataMiner Agent ID is not an integer.
- ArgumentException
The element ID is not an integer.
- ArgumentException
Invalid DataMiner Agent ID.
- ArgumentException
Invalid element ID.
DmsElementId(int, int)
Initializes a new instance of the DmsElementId structure using the specified element ID and DataMiner Agent ID.
public DmsElementId(int agentId, int elementId)
Parameters
Remarks
The hosting DataMiner Agent ID value will be set to the same value as the specified DataMiner Agent ID.
Exceptions
- ArgumentException
agentIdis invalid.- ArgumentException
elementIdis invalid.