Skip to content

Reference

OpcValueCollection Members

Represents a generic collection of OpcValue instances.

Reference

OpcValueCollection<T> Members ​

Type
OpcValueCollection<T>
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Inherits members from Collection<T>.

Constructors ​

OpcValueCollection ​

2 overloads

OverloadDescription
OpcValueCollection()Initializes a new instance of the OpcValueCollection<T> class.
OpcValueCollection(IList<T>)Initializes a new instance of the OpcValueCollection<T> class as a wrapper for the specified list.

OpcValueCollection() ​

Initializes a new instance of the OpcValueCollection<T> class.

csharp
public OpcValueCollection()
vbnet
Public Sub New()

OpcValueCollection(IList<T>) ​

Initializes a new instance of the OpcValueCollection<T> class as a wrapper for the specified list.

csharp
public OpcValueCollection(IList<T> list)
vbnet
Public Sub New(list As IList(Of T))

Parameters

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

Exceptions

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

Methods ​

ClearItems ​

protected · override

Removes all values from the collection.

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

Overrides

ClearItems()

InsertItem ​

protected · override

Inserts the item into the collection at the index specified.

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

Parameters

NameTypeDescription
indexInt32The zero-based index at which the item is to be inserted.
itemTThe value to insert.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe index is less than zero or greater than the number of values in the collection.

Overrides

InsertItem(int, T)

RemoveItem ​

protected · override

Removes the value at the index specified from the collection.

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

Parameters

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

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe index is less than zero or not less than the number of values in the collection.

Overrides

RemoveItem(int)

SetItem ​

protected · override

Replaces the value at the index specified with the item.

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

Parameters

NameTypeDescription
indexInt32The zero-based index of the value to replace.
itemTThe value to set at the index.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe index is less than zero or not less than the number of values in the collection.

Overrides

SetItem(int, T)