Method ServiceExists
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
ServiceExists(DmsServiceId)
Determines whether a service with the specified DataMiner Agent ID/element ID exists on this DataMiner Agent.
bool ServiceExists(DmsServiceId dmsServiceId)
Parameters
dmsServiceIdDmsServiceIdThe DataMiner Agent ID/service ID of the service.
Returns
- bool
trueif the service exists on this DataMiner Agent; otherwise,false.
Exceptions
- ArgumentException
dmsServiceIdis invalid.
ServiceExists(string)
Determines whether a service with the specified name exists on this DataMiner Agent.
bool ServiceExists(string serviceName)
Parameters
serviceNamestringThe name of the service.
Returns
- bool
trueif the service exists on this DataMiner Agent; otherwise,false.
Exceptions
- ArgumentNullException
serviceNameis null.- ArgumentException
serviceNameis the empty string ("") or white space.