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
newServiceNamestringThe name to assign to the duplicated service.
agentIDmaThe target DataMiner Agent where the duplicated service should be created.
Returns
- IDmsService
The duplicated service.
Exceptions
- ArgumentNullException
newServiceNameis null.- ArgumentException
newServiceNameis 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.