Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcDataNodeCollection type exposes the following members.
Initializes a new instance of the PlcDataNodeCollection class.
C#
public PlcDataNodeCollection(PlcDataNode owner)
Parameters
owner
PlcDataNode
The PlcDataNode which is the owner of the objects.
Exceptions
The owner
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the PlcDataNodeCollection class using the owner
and items
specified.
C#
public PlcDataNodeCollection(PlcDataNode owner, IEnumerable<PlcDataNode> items)
Parameters
owner
PlcDataNode
The PlcDataNode which is the owner of the objects.
items
IEnumerable<PlcDataNode>
The IEnumerable´1 items to add as the initial items of the new collection.
Exceptions
The owner
or items
is a null reference (Nothing in Visual Basic).
Gets the owner of the collection objects.
C#
public PlcDataNode Owner { get; }
Property Value
The PlcDataNode which owns the objects.
Extracts the key from the specified element.
C#
protected override PlcType GetKeyForItem(PlcDataNode item)
Parameters
item
PlcDataNode
The element from which to extract the key.
Returns
The key for the specified element.
Exceptions
The item
is a null reference (Nothing in Visual Basic).
Inserts an element into the PlcDataNodeCollection at the specified index
.
C#
protected override void InsertItem(int index, PlcDataNode item)
Parameters
index
Int32
The zero-based index at which item should be inserted.
item
PlcDataNode
The object to insert.
Exceptions
The index
is less than 0 or index
is greater than Count.
Removes the element at the specified index of the PlcDataNodeCollection.
C#
protected override void RemoveItem(int index)
Parameters
index
Int32
The index of the element to remove.
Replaces the item at the specified index with the specified item.
C#
protected override void SetItem(int index, PlcDataNode item)
Parameters
index
Int32
The zero-based index of the item to be replaced.
item
PlcDataNode
The new item.