Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcReadOnlyNodeCollection type exposes the following members.
Gets the number of nodes contained in the OpcReadOnlyNodeCollection instance.
C#
public int Count { get; }
Property Value
The number of nodes contained in the OpcReadOnlyNodeCollection instance.
Gets an empty instance used in cases there the concrete collection does not yet exists.
C#
public static OpcReadOnlyNodeCollection Empty { get; }
Property Value
An instance of the OpcReadOnlyNodeCollection which can be used for general purpose in cases there an empty collection is required.
Gets the node at the specified index.
C#
public IOpcNode this[int index] { get; }
Property Value
The node at the specified index.
Exceptions
The index
is not valid index in the OpcReadOnlyNodeCollection.
Gets the node at the specified index.
C#
public IOpcNode this[OpcNodeId id] { get; }
Property Value
The node with the specified id
.
Exceptions
The id
does not refer to a node with such an Id.
Gets the IListĀ“1 that the OpcReadOnlyNodeCollection wraps.
C#
protected IList<IOpcNode> Items { get; }
Property Value
The IListĀ“1 that the OpcReadOnlyNodeCollection wraps.
Determines whether a node is in the OpcReadOnlyNodeCollection.
C#
public bool Contains(IOpcNode value)
Parameters
value
IOpcNode
The object to locate in the OpcReadOnlyNodeCollection.
Returns
The value true if value is found in the OpcReadOnlyNodeCollection; otherwise, the value false.
Exceptions
The value
is a null reference (Nothing in Visual Basic).
Determines whether a node with the id
specified is in the OpcReadOnlyNodeCollection.
C#
public bool Contains(OpcNodeId id)
Parameters
id
OpcNodeId
The OpcNodeId to use to look up a existing node.
Returns
The value true if a node exists in the OpcReadOnlyNodeCollection with the id
; otherwise, the value false.
Exceptions
The id
is a null reference (Nothing in Visual Basic).
Copies the entire OpcReadOnlyNodeCollection to a compatible one-dimensional Array, starting at the specified index
of the target array
.
C#
public void CopyTo(IOpcNode[] array, int index)
Parameters
array
IOpcNode[]
The one-dimensional Array that is the destination of the elements copied from OpcReadOnlyNodeCollection. The Array must have zero-based indexing.
index
Int32
The zero-based index in array at which copying begins.
Exceptions
The number of elements in the source OpcReadOnlyNodeCollection is greater than the available space from index
to the end of the destination array
.
The array
is a null reference (Nothing in Visual Basic).
The index
is less than zero.
Returns an enumerator that iterates through the OpcReadOnlyNodeCollection.
C#
public IEnumerator<IOpcNode> GetEnumerator()
Returns
An IEnumeratorĀ“1 for the OpcReadOnlyNodeCollection.
Searches for the specified object and returns the zero-based index of the first occurrence within the entire OpcReadOnlyNodeCollection.
C#
public int IndexOf(IOpcNode value)
Parameters
value
IOpcNode
The node to locate in the OpcReadOnlyNodeCollection.
Returns
The zero-based index of the first occurrence of item within the entire value
, if found; otherwise the value -1.
Exceptions
The value
is a null reference (Nothing in Visual Basic).
Tries to determine the item associated with the specified id
.
C#
public bool TryGet(OpcNodeId id, out IOpcNode node)
Parameters
id
OpcNodeId
The OpcNodeId whose IOpcNode item to get.
node
IOpcNode
When this method returns, the IOpcNode associated with the specified id
, if the id
is found; otherwise, a null reference (Nothing in Visual Basic).
Returns
Exceptions
The id
is a null reference (Nothing in Visual Basic).