PlcDataNodeCollection Members

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcDataNodeCollection type exposes the following members.

PlcDataNodeCollection()

Initializes a new instance of the PlcDataNodeCollection class.

C#

public PlcDataNodeCollection()

PlcDataNodeCollection(PlcDataNode)

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

ArgumentNullException

The owner is a null reference (Nothing in Visual Basic).

PlcDataNodeCollection(PlcDataNode, IEnumerable<PlcDataNode>)

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

ArgumentNullException

The owner or items is a null reference (Nothing in Visual Basic).

Owner

Gets the owner of the collection objects.

C#

public PlcDataNode Owner { get; }


Property Value

PlcDataNode

The PlcDataNode which owns the objects.

ClearItems()

Removes all elements from the PlcDataNodeCollection.

C#

protected override void ClearItems()

GetKeyForItem(PlcDataNode)

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

PlcType

The key for the specified element.



Exceptions

ArgumentNullException

The item is a null reference (Nothing in Visual Basic).

InsertItem(Int32, PlcDataNode)

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

ArgumentOutOfRangeException

The index is less than 0 or index is greater than Count.

RemoveItem(Int32)

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.

SetItem(Int32, PlcDataNode)

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.