Table of Contents

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

id string

String 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

id is null .

ArgumentException

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

agentId int

The DataMiner Agent ID.

serviceId int

The service ID.

Remarks

The hosting DataMiner Agent ID value will be set to the same value as the specified DataMiner Agent ID.

Exceptions

ArgumentException

agentId is invalid.

ArgumentException

serviceId is invalid.