Method Duplicate
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
Duplicate(string, IDma)
Duplicates the service.
public IDmsService Duplicate(string newServiceName, IDma agent = null)
Parameters
newServiceName
stringThe name to assign to the duplicated service.
agent
IDmaThe target DataMiner Agent where the duplicated service should be created.
Returns
- IDmsService
The duplicated service.
Exceptions
- ArgumentNullException
newServiceName
is null.- ArgumentException
newServiceName
is invalid.- NotSupportedException
The service is a service template or generated by a service template.
- AgentNotFoundException
The specified DataMiner Agent was not found in the DataMiner System.
- ServiceNotFoundException
The service was not found in the DataMiner System.
- IncorrectDataException
Invalid data.