Method GetService
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
GetService(DmsServiceId)
Retrieves the service with the specified the DataMiner Agent ID and element ID from this DataMiner Agent.
IDmsService GetService(DmsServiceId dmsServiceId)
Parameters
dmsServiceId
DmsServiceIdThe Agent ID/service ID of the service.
Returns
- IDmsService
The service with the specified DataMiner Agent ID and service ID.
Exceptions
- ArgumentException
dmsServiceId
is invalid.- ServiceNotFoundException
The service was not found on this DataMiner Agent.
GetService(string)
Retrieves the service with the specified name from this DataMiner Agent.
IDmsService GetService(string serviceName)
Parameters
serviceName
stringThe name of the service.
Returns
- IDmsService
The service with the specified element name.
Exceptions
- ArgumentNullException
serviceName
is null.- ArgumentException
serviceName
is the empty string ("") or white space.- ServiceNotFoundException
The service with the specified name was not found on this DataMiner Agent.