Reference
OpcReadOnlyNodeCollection Members
Provides a read-only collection of IOpcNode instances accessible by their Id or just using an index.
Reference
OpcReadOnlyNodeCollection Members
- Type
- OpcReadOnlyNodeCollection
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Properties
Count
Gets the number of nodes contained in the OpcReadOnlyNodeCollection instance.
public int Count { get; }Public ReadOnly Property Count As IntegerProperty value
The number of nodes contained in the OpcReadOnlyNodeCollection instance.
Implements
Empty
Gets an empty instance used in cases there the concrete collection does not yet exists.
public static OpcReadOnlyNodeCollection Empty { get; }Public Shared ReadOnly Property Empty As OpcReadOnlyNodeCollectionProperty value
An instance of the OpcReadOnlyNodeCollection which can be used for general purpose in cases there an empty collection is required.
Items
Gets the IList<T> that the OpcReadOnlyNodeCollection wraps.
protected IList<IOpcNode> Items { get; }Protected ReadOnly Property Items As IList(Of IOpcNode)Property value
The IList<T> that the OpcReadOnlyNodeCollection wraps.
Methods
Contains
| Overload | Description |
|---|---|
| Contains( | Determines whether a node is in the Opc |
| Contains( | Determines whether a node with the id specified is in the Opc |
Contains(IOpcNode)
Determines whether a node is in the OpcReadOnlyNodeCollection.
public bool Contains(IOpcNode value)Public Function Contains(value As IOpcNode) As BooleanParameters
| Name | Type | Description |
|---|---|---|
value | IOpcNode | The object to locate in the Opc |
Returns
The value true if value is found in the OpcReadOnlyNodeCollection; otherwise, the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The value is a null reference ( |
Implements
Contains(OpcNodeId)
Determines whether a node with the id specified is in the OpcReadOnlyNodeCollection.
public bool Contains(OpcNodeId id)Public Function Contains(id As OpcNodeId) As BooleanParameters
| Name | Type | Description |
|---|---|---|
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
| Exception | Condition |
|---|---|
| Argument | The id is a null reference ( |
CopyTo
Copies the entire OpcReadOnlyNodeCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
public void CopyTo(IOpcNode[] array, int index)Public Sub CopyTo(array As IOpcNode(), index As Integer)Parameters
| Name | Type | Description |
|---|---|---|
array | IOpcNode[] | The one-dimensional Array that is the destination of the elements copied from Opc |
index | Int32 | The zero-based index in array at which copying begins. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The number of elements in the source Opcindex to the end of the destination array. |
| Argument | The array is a null reference ( |
| Argument | The index is less than zero. |
Implements
GetEnumerator
Returns an enumerator that iterates through the OpcReadOnlyNodeCollection.
public IEnumerator<IOpcNode> GetEnumerator()Public Function GetEnumerator() As IEnumerator(Of IOpcNode)Returns
An IEnumerator<T> for the OpcReadOnlyNodeCollection.
Implements
IndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire OpcReadOnlyNodeCollection.
public int IndexOf(IOpcNode value)Public Function IndexOf(value As IOpcNode) As IntegerParameters
| Name | Type | Description |
|---|---|---|
value | IOpcNode | The node to locate in the Opc |
Returns
The zero-based index of the first occurrence of item within the entire value, if found; otherwise the value -1.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The value is a null reference ( |
Implements
TryGet
Tries to determine the item associated with the specified id.
public bool TryGet(OpcNodeId id, out IOpcNode node)Public Function TryGet(id As OpcNodeId, node As IOpcNode) As BooleanParameters
| Name | Type | Description |
|---|---|---|
id | OpcNodeId | The OpcNodeId whose IOpcNode item to get. |
node | out IOpcNode | When this method returns, the IOpcNode associated with the specified id, if the id is found; otherwise, a null reference ( |
Returns
Exceptions
| Exception | Condition |
|---|---|
| Argument | The id is a null reference ( |
Indexers
Item
| Overload | Description |
|---|---|
| this[int] | Gets the node at the specified index. |
| this[OpcNodeId] | Gets the node at the specified index. |
this[int]
Gets the node at the specified index.
public IOpcNode this[int index] { get; }Public ReadOnly Default Property this[](index As Integer) As IOpcNodeParameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero-based index of the node to get. |
Property value
The node at the specified index.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The index is not valid index in the Opc |
this[OpcNodeId]
Gets the node at the specified index.
public IOpcNode this[OpcNodeId id] { get; }Public ReadOnly Default Property this[](id As OpcNodeId) As IOpcNodeParameters
| Name | Type | Description |
|---|---|---|
id | OpcNodeId | The OpcNodeId of the node to get. |
Property value
The node with the specified id.
Exceptions
| Exception | Condition |
|---|---|
| Key | The id does not refer to a node with such an Id. |

