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
dmsServiceIdDmsServiceIdThe Agent ID/service ID of the service.
Returns
- IDmsService
The service with the specified DataMiner Agent ID and service ID.
Exceptions
- ArgumentException
dmsServiceIdis 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
serviceNamestringThe name of the service.
Returns
- IDmsService
The service with the specified element name.
Exceptions
- ArgumentNullException
serviceNameis null.- ArgumentException
serviceNameis the empty string ("") or white space.- ServiceNotFoundException
The service with the specified name was not found on this DataMiner Agent.