Method GetService
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
GetService(DmsServiceId)
Retrieves the service with the specified service ID.
IDmsService GetService(DmsServiceId dmsServiceId)
Parameters
dmsServiceIdDmsServiceIdThe DataMiner Agent ID/service ID of the service.
Returns
- IDmsService
The service with the specified ID.
Exceptions
- ArgumentException
dmsServiceIdis empty.- ServiceNotFoundException
No service with the specified ID exists in the DataMiner System.
GetService(string)
Retrieves the service with the specified service name.
IDmsService GetService(string serviceName)
Parameters
serviceNamestringThe name of the service.
Returns
- IDmsService
The service with the specified name.
Exceptions
- ArgumentNullException
serviceNameis null.- ArgumentException
serviceNameis the empty string ("") or white space.- ServiceNotFoundException
No service with the specified name exists in the DataMiner system.