Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcMemberCollection type exposes the following members.
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
The items
is a null reference (Nothing in Visual Basic).
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
The new PlcValueMember created and added to the end of the collection.
Exceptions
The name
is equal to Empty.
The name
or value
is a null reference (Nothing in Visual Basic).
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
The key for the specified element.
Exceptions
The item
is a null reference (Nothing in Visual Basic).