Method Duplicate
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
Duplicate(string, IDma)
Duplicates the element.
IDmsElement Duplicate(string newElementName, IDma agent = null)
Parameters
newElementNamestringThe name to assign to the duplicated element.
agentIDmaThe target DataMiner Agent where the duplicated element should be created.
Returns
- IDmsElement
The duplicated element.
Exceptions
- ArgumentNullException
newElementNameis null.- ArgumentException
newElementNameis invalid.- NotSupportedException
The element is a DVE child or a derived element.
- AgentNotFoundException
The specified DataMiner Agent was not found in the DataMiner System.
- ElementNotFoundException
The element was not found in the DataMiner System.
- IncorrectDataException
Invalid data.