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 for protocols that do not require connection-specific configuration.
public ElementConfiguration(IDms dms, string elementName, IDmsProtocol protocol)
Parameters
dmsIDmsThe IDms interface.
elementNamestringThe element name.
protocolIDmsProtocolThe protocol.
Remarks
Forbidden characters: '', '/', ':', '*', '?', '"', '<', '>', '|', '°', ';'. Use the overload with IEnumerable<IElementConnection> for protocols that require connection-specific configuration.
Exceptions
- ArgumentNullException
dmsis null.- ArgumentNullException
elementNameis null.- ArgumentNullException
protocolis null.- ArgumentException
elementNameis empty or white space.- ArgumentException
elementNameexceeds 200 characters.- ArgumentException
elementNamecontains a forbidden character.- ArgumentException
elementNamecontains more than one '%' character.- IncorrectDataException
The protocol declares a connection type that requires explicit connection settings.
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
dmsis null.- ArgumentNullException
elementNameis null.- ArgumentNullException
protocolis null.- ArgumentNullException
connectionInfois null.- ArgumentException
elementNameis empty or white space.- ArgumentException
elementNameexceeds 200 characters.- ArgumentException
elementNamecontains a forbidden character.- ArgumentException
elementNamecontains more than one '%' character.- ArgumentException
More connections are provided than the protocol declares.
- IncorrectDataException
A connection does not match the type the protocol declares at that index.