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
dmsServiceId
DmsServiceIdThe DataMiner Agent ID/service ID of the service.
Returns
- bool
true
if the service exists on this DataMiner Agent; otherwise,false
.
Exceptions
- ArgumentException
dmsServiceId
is invalid.
ServiceExists(string)
Determines whether a service with the specified name exists on this DataMiner Agent.
bool ServiceExists(string serviceName)
Parameters
serviceName
stringThe name of the service.
Returns
- bool
true
if the service exists on this DataMiner Agent; otherwise,false
.
Exceptions
- ArgumentNullException
serviceName
is null.- ArgumentException
serviceName
is the empty string ("") or white space.