Constructor DmsServiceId
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
DmsServiceId(string)
Initializes a new instance of the DmsServiceId structure using the specified string.
public DmsServiceId(string id)
Parameters
idstringString representing the system-wide service ID.
Remarks
The provided string must be formatted as follows: "DataMiner Agent ID/service 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 service ID is not an integer.
- ArgumentException
Invalid DataMiner Agent ID.
- ArgumentException
Invalid service ID.
DmsServiceId(int, int)
Initializes a new instance of the DmsServiceId structure using the specified service ID and DataMiner Agent ID.
public DmsServiceId(int agentId, int serviceId)
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
serviceIdis invalid.