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