Skip to content

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 ​

protected · 2 overloads

OverloadDescription
OpcCollection()protectedInitializes a new instance of the OpcCollection<TItem, TItemContent, TItemContentList> class.
OpcCollection(IList<TItem>)protectedInitializes a new instance of the OpcCollection<TItem, TItemContent, TItemContentList> class as a wrapper for the specified list.

OpcCollection() ​

protected

Initializes a new instance of the OpcCollection<TItem, TItemContent, TItemContentList> class.

csharp
protected OpcCollection()
vbnet
Protected Sub New()

OpcCollection(IList<TItem>) ​

protected

Initializes a new instance of the OpcCollection<TItem, TItemContent, TItemContentList> class as a wrapper for the specified list.

csharp
protected OpcCollection(IList<TItem> list)
vbnet
Protected Sub New(list As IList(Of TItem))

Parameters

NameTypeDescription
listIList<TItem>The IList<T> of TItem instances to wrap.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe list is a null reference (Nothing in Visual Basic).

Methods ​

ClearItems ​

protected · override

Removes all elements from the OpcCollection<TItem, TItemContent, TItemContentList>.

csharp
protected override void ClearItems()
vbnet
Protected Overrides Sub ClearItems()

Overrides

ClearItems()

InsertItem ​

protected · override

Inserts an element into the OpcCollection<TItem, TItemContent, TItemContentList> at the specified index.

csharp
protected override void InsertItem(int index, TItem item)
vbnet
Protected Overrides Sub InsertItem(index As Integer, item As TItem)

Parameters

NameTypeDescription
indexInt32The zero-based index at which the item should be inserted.
itemTItemThe object to insert.

Overrides

InsertItem(int, TItem)

RemoveItem ​

protected · override

Removes the element at the specified index of the OpcCollection<TItem, TItemContent, TItemContentList>.

csharp
protected override void RemoveItem(int index)
vbnet
Protected Overrides Sub RemoveItem(index As Integer)

Parameters

NameTypeDescription
indexInt32The zero-based index of the element to remove.

Overrides

RemoveItem(int)

SetItem ​

protected · override

Replaces the element at the specified index.

csharp
protected override void SetItem(int index, TItem item)
vbnet
Protected Overrides Sub SetItem(index As Integer, item As TItem)

Parameters

NameTypeDescription
indexInt32The zero-based index of the element to replace.
itemTItemThe new value for the element at the specified index.

Overrides

SetItem(int, TItem)