Reference
OpcCollection<TItem, TItemContent, TItemContentList> Class
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> Class
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcCollection<TItem, TItemContent, TItemContentList> Members
- Also in
- Opc.UaFx.Client
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.
Syntax
csharp
public abstract class OpcCollection<TItem, TItemContent, TItemContentList> : Collection<TItem>
where TItem : IOpcContainer<TItemContent>
where TItemContentList : class, IList<TItemContent>, new()vbnet
Public MustInherit Class OpcCollection(Of TItem As IOpcContainer(Of TItemContent), TItemContent, TItemContentList As {Class, IList(Of TItemContent), New})
Inherits Collection(Of TItem)Type parameters
| Name | Description |
|---|---|
TItem | The type of items in the collection which implements the IOpcContainer to interface to maintain an instance of the type defined by TItemContent. |
TItemContent | The type of content maintained by the type defined by TItem. |
TItemContentList | The type of TItemContentList to maintained and represented by the collection. |
Inheritance
Object → Collection<TItem> → OpcCollection<TItem, TItemContent, TItemContentList>
Implements
- ICollection
- ICollection<TItem>
- IEnumerable
- IEnumerable<TItem>
- IList
- IList<TItem>
- IReadOnlyCollection<TItem>
- IReadOnlyList<TItem>
Derived types
- OpcArgumentCollection
- OpcNameCollection
- OpcReferenceCollection
- OpcReferenceDescriptionCollection
- OpcResultCollection<TItem, TItemContent, TItemContentList>
- OpcStatusCollection
- OpcLocalReferenceCollection
Constructors
| Name | Description |
|---|---|
| OpcCollection | Initializes a new instance of the OpcCollection< |
Methods
| Name | Description |
|---|---|
| ClearItems | Removes all elements from the OpcCollection< |
| InsertItem | Inserts an element into the OpcCollection< |
| RemoveItem | Removes the element at the specified index of the OpcCollection< |
| SetItem | Replaces the element at the specified index. |
Inherits members from Collection<TItem>.
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

