Reference
OpcCollection<TItem, TItemContent, TItemContentList> Members
Provides an abstract generic base class for IOpcContainer items their content is maintained in a different list which is to be used as the content of the collection like TItem uses the TItemContent instances in TItemContentList.
Reference
OpcCollection<TItem, TItemContent, TItemContentList> Members
- Type
- OpcCollection<TItem, TItemContent, TItemContentList>
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from Collection<TItem>.
Constructors
OpcCollection
| Overload | Description |
|---|---|
| OpcCollection() | Initializes a new instance of the OpcCollection< |
| OpcCollection( | Initializes a new instance of the OpcCollection<list. |
OpcCollection()
Initializes a new instance of the OpcCollection<TItem, TItemContent, TItemContentList> class.
protected OpcCollection()Protected Sub New()OpcCollection(IList<TItem>)
Initializes a new instance of the OpcCollection<TItem, TItemContent, TItemContentList> class as a wrapper for the specified list.
protected OpcCollection(IList<TItem> list)Protected Sub New(list As IList(Of TItem))Parameters
| Name | Type | Description |
|---|---|---|
list | IList< | The IList<TItem instances to wrap. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The list is a null reference ( |
Methods
ClearItems
Removes all elements from the OpcCollection<TItem, TItemContent, TItemContentList>.
protected override void ClearItems()Protected Overrides Sub ClearItems()Overrides
InsertItem
Inserts an element into the OpcCollection<TItem, TItemContent, TItemContentList> at the specified index.
protected override void InsertItem(int index, TItem item)Protected Overrides Sub InsertItem(index As Integer, item As TItem)Parameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero-based index at which the item should be inserted. |
item | TItem | The object to insert. |
Overrides
RemoveItem
Removes the element at the specified index of the OpcCollection<TItem, TItemContent, TItemContentList>.
protected override void RemoveItem(int index)Protected Overrides Sub RemoveItem(index As Integer)Parameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero-based index of the element to remove. |
Overrides
SetItem
Replaces the element at the specified index.
protected override void SetItem(int index, TItem item)Protected Overrides Sub SetItem(index As Integer, item As TItem)Parameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero-based index of the element to replace. |
item | TItem | The new value for the element at the specified index. |
Overrides

