OPC Studio User's Guide and Reference
UAPublishedVariableDataCollection Constructor(IEnumerable<UAPublishedVariableData>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub.Configuration Namespace > UAPublishedVariableDataCollection Class > UAPublishedVariableDataCollection Constructor : UAPublishedVariableDataCollection Constructor(IEnumerable<UAPublishedVariableData>)

The value of this parameter cannot be null (Nothing in Visual Basic).

Initializes a new instance of the collection, with given items.
Syntax
'Declaration
 
Public Function New( _
   ByVal items As IEnumerable(Of UAPublishedVariableData) _
)
'Usage
 
Dim items As IEnumerable(Of UAPublishedVariableData)
 
Dim instance As New UAPublishedVariableDataCollection(items)
public UAPublishedVariableDataCollection( 
   IEnumerable<UAPublishedVariableData> items
)
public:
UAPublishedVariableDataCollection( 
   IEnumerable<UAPublishedVariableData^>^ items
)

Parameters

items

The value of this parameter cannot be null (Nothing in Visual Basic).

Remarks
As opposed to #ctor, this constructor does not wrap the passed-in list.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also