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
dms
IDmsThe IDms interface.
elementName
stringThe element name.
protocol
IDmsProtocolThe protocol.
Remarks
Forbidden characters: '', '/', ':', '*', '?', '"', '<', '>', '|', '°', ';'.
Exceptions
- ArgumentNullException
elementName
is null.- ArgumentNullException
protocol
is null.- ArgumentNullException
dms
is null.- ArgumentException
elementName
is empty or white space.- ArgumentException
elementName
exceeds 200 characters.- ArgumentException
elementName
contains a forbidden character.- ArgumentException
elementName
contains 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
dms
IDmsThe IDms interface.
elementName
stringThe element name.
protocol
IDmsProtocolThe protocol.
connectionInfo
IEnumerable<IElementConnection>The Connections that will be used to create the element.
Remarks
Forbidden characters: '', '/', ':', '*', '?', '"', '<', '>', '|', '°', ';'.
Exceptions
- ArgumentNullException
elementName
is null.- ArgumentNullException
protocol
is null.- ArgumentNullException
dms
is null.- ArgumentException
elementName
is empty or white space.- ArgumentException
elementName
exceeds 200 characters.- ArgumentException
elementName
contains a forbidden character.- ArgumentException
elementName
contains more than one '%' character.