Constructor ElementConfiguration
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
ElementConfiguration(IDms, string, IDmsProtocol)
Initializes a new instance of the ElementConfiguration class and defines by default a virtual connection.
public ElementConfiguration(IDms dms, string elementName, IDmsProtocol protocol)
Parameters
dmsIDmsThe IDms interface.
elementNamestringThe element name.
protocolIDmsProtocolThe protocol.
Remarks
Forbidden characters: '', '/', ':', '*', '?', '"', '<', '>', '|', '°', ';'.
Exceptions
- ArgumentNullException
elementNameis null.- ArgumentNullException
protocolis null.- ArgumentNullException
dmsis null.- ArgumentException
elementNameis empty or white space.- ArgumentException
elementNameexceeds 200 characters.- ArgumentException
elementNamecontains a forbidden character.- ArgumentException
elementNamecontains more than one '%' character.
ElementConfiguration(IDms, string, IDmsProtocol, IEnumerable<IElementConnection>)
Initializes a new instance of the ElementConfiguration class.
public ElementConfiguration(IDms dms, string elementName, IDmsProtocol protocol, IEnumerable<IElementConnection> connectionInfo)
Parameters
dmsIDmsThe IDms interface.
elementNamestringThe element name.
protocolIDmsProtocolThe protocol.
connectionInfoIEnumerable<IElementConnection>The Connections that will be used to create the element.
Remarks
Forbidden characters: '', '/', ':', '*', '?', '"', '<', '>', '|', '°', ';'.
Exceptions
- ArgumentNullException
elementNameis null.- ArgumentNullException
protocolis null.- ArgumentNullException
dmsis null.- ArgumentException
elementNameis empty or white space.- ArgumentException
elementNameexceeds 200 characters.- ArgumentException
elementNamecontains a forbidden character.- ArgumentException
elementNamecontains more than one '%' character.