PlcMemberCollection Members

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

PlcMemberCollection()

Initializes a new instance of the PlcMemberCollection class.

C#

public PlcMemberCollection()

PlcMemberCollection(IEnumerable<PlcMember>)

Initializes a new instance of the PlcMemberCollection class using the items specified.

C#

public PlcMemberCollection(IEnumerable<PlcMember> items)


Parameters

items IEnumerable<PlcMember>

The IEnumerable┬┤1 items to add as the initial items of the new collection.


Exceptions

ArgumentNullException

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

Add(String, IPlcValue)

Creates a new PlcValueMember from the name and value specified and adds the new member object.

C#

public PlcValueMember Add(string name, IPlcValue value)


Parameters

name String

The name of the new PlcValueMember.

value IPlcValue

The IPlcValue of the new PlcValueMember.


Returns

PlcValueMember

The new PlcValueMember created and added to the end of the collection.



Exceptions

ArgumentException

The name is equal to Empty.

ArgumentNullException

The name or value is a null reference (Nothing in Visual Basic).

GetKeyForItem(PlcMember)

Extracts the key from the specified element.

C#

protected override PlcName GetKeyForItem(PlcMember item)


Parameters

item PlcMember

The element from which to extract the key.


Returns

PlcName

The key for the specified element.



Exceptions

ArgumentNullException

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