Skip to content

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 ​

abstract · since v2.7

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 ​

NameDescription
TItemThe type of items in the collection which implements the IOpcContainer to interface to maintain an instance of the type defined by TItemContent.
TItemContentThe type of content maintained by the type defined by TItem.
TItemContentListThe type of TItemContentList to maintained and represented by the collection.

Inheritance ​

Object → Collection<TItem> → OpcCollection<TItem, TItemContent, TItemContentList>

Implements ​

Derived types ​

Constructors ​

NameDescription
OpcCollectionprotected · 2 overloadsInitializes a new instance of the OpcCollection<TItem, TItemContent, TItemContentList> class.

Methods ​

NameDescription
ClearItemsprotected · overrideRemoves all elements from the OpcCollection<TItem, TItemContent, TItemContentList>.
InsertItemprotected · overrideInserts an element into the OpcCollection<TItem, TItemContent, TItemContentList> at the specified index.
RemoveItemprotected · overrideRemoves the element at the specified index of the OpcCollection<TItem, TItemContent, TItemContentList>.
SetItemprotected · overrideReplaces the element at the specified index.

Inherits members from Collection<TItem>.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.7–v2.59