Skip to content

Reference

OpcDataEnumerator Members

Provides an enumerator for simple iteration over a generic collection.

Reference

OpcDataEnumerator<T> Members ​

Type
OpcDataEnumerator<T>
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Constructors ​

OpcDataEnumerator ​

Initializes a new instance of the OpcDataEnumerator<T> class using the list as the orginator of the items to iterate.

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

Parameters

NameTypeDescription
listIList<T>An instance implementing the IList<T> interface its items are enumerated by the new OpcDataEnumerator<T>.

Exceptions

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

Properties ​

Current ​

Gets the element in the origin at the current position of the enumerator.

csharp
public T Current { get; }
vbnet
Public ReadOnly Property Current As T

Property value

T

The element in the origin at the current position of the enumerator.

Exceptions

ExceptionCondition
InvalidOperationExceptionThe enumerator has not yet been moved.

Implements

Current

Methods ​

Dispose ​

2 overloads

OverloadDescription
Dispose()Releases all resources used by the OpcDataEnumerator<T>.
Dispose(bool)protected · virtualReleases the unmanaged resources used by the OpcDataEnumerator<T> and optionally releases the managed resources.

Dispose() ​

Releases all resources used by the OpcDataEnumerator<T>.

csharp
public void Dispose()
vbnet
Public Sub Dispose()

Implements

Dispose()

Dispose(bool) ​

protected · virtual

Releases the unmanaged resources used by the OpcDataEnumerator<T> and optionally releases the managed resources.

csharp
protected virtual void Dispose(bool disposing)
vbnet
Protected Overridable Sub Dispose(disposing As Boolean)

Parameters

NameTypeDescription
disposingBooleanThe value true to release both managed and unmanaged resources; otherwise the value false to release only unmanaged resources.

MoveNext ​

Advances the enumerator to the next element of the origin.

csharp
public bool MoveNext()
vbnet
Public Function MoveNext() As Boolean

Returns

Boolean

The value true if the enumerator was successfully advanced to the next element; otherwise the value false if the enumerator has passed the end of the origin.

Implements

MoveNext()

Reset ​

Sets the enumerator to its initial position, which is before the first element in the origin.

csharp
public void Reset()
vbnet
Public Sub Reset()

Implements

Reset()