Skip to content

Reference

OpcNodeInfo Members

Provides properties and methods for the examination of the attributes and references of a node.

Reference

OpcNodeInfo Members ​

Type
OpcNodeInfo
Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Properties ​

Category ​

Gets the classification of the node using one of the predefined categories.

csharp
public OpcNodeCategory Category { get; }
vbnet
Public ReadOnly Property Category As OpcNodeCategory

Property value

OpcNodeCategory

One of the members defined by the OpcNodeCategory enumeration.

Implements

Category

Remarks

Using a category a node can be classified into different top level kinds of nodes like methods, objects, variables and different types.

Context ​

Gets the browse setup and context to use to inspect the node, its attributes and its relationships to other nodes.

csharp
public OpcBrowseNodeContext Context { get; }
vbnet
Public ReadOnly Property Context As OpcBrowseNodeContext

Property value

OpcBrowseNodeContext

An instance of the OpcBrowseNodeContext class which has been initially created using the configuration specified by the initial browse call using the entry node.

DisplayName ​

Gets the value of the DisplayName attribute which defines the localizable name of the node.

csharp
public OpcText DisplayName { get; }
vbnet
Public ReadOnly Property DisplayName As OpcText

Property value

OpcText

An instance of the OpcText class which defines the localizable name of the node.

Implements

DisplayName

Remarks

Client application should use this attribute if they want to display the name of the node to the user. The string part of the DisplayName is restricted to 512 characters.

Name ​

Gets the nominal information of the node represented.

csharp
public OpcName Name { get; }
vbnet
Public ReadOnly Property Name As OpcName

Property value

OpcName

An instance of the OpcName class providing the nominal information about the node.

Implements

Name

NodeId ​

Gets the node identifier of the node represented.

csharp
public OpcNodeId NodeId { get; }
vbnet
Public ReadOnly Property NodeId As OpcNodeId

Property value

OpcNodeId

An instance of the OpcNodeId class providing the (unresolved) node identifier of the node.

Reference ​

Gets the description of the node reference through that the node represented and examined has been located.

csharp
public OpcReferenceDescription Reference { get; }
vbnet
Public ReadOnly Property Reference As OpcReferenceDescription

Property value

OpcReferenceDescription

An instance of the OpcReferenceDescription class which provides information about the relationship through that the node has been located.

Methods ​

Attribute ​

2 overloads

OverloadDescription
Attribute(OpcAttribute)Retrieves the OpcAttributeInfo of the node that has the specified OpcAttribute identifier.
Attribute(string)Retrieves the OpcAttributeInfo of the node that is known using the specified browseName.

Attribute(OpcAttribute) ​

Retrieves the OpcAttributeInfo of the node that has the specified OpcAttribute identifier.

csharp
public OpcAttributeInfo Attribute(OpcAttribute attribute)
vbnet
Public Function Attribute(attribute As OpcAttribute) As OpcAttributeInfo

Parameters

NameTypeDescription
attributeOpcAttributeThe OpcAttribute identifier of the OpcAttributeInfo to retrieve.

Returns

OpcAttributeInfo

An OpcAttributeInfo that has the specified OpcAttribute identifier; otherwise a null reference (Nothing in Visual Basic) in case there the server does not provide such an attribute for the node.

Remarks

Although the server may provide an attribute, the Value (= an OpcValue) or its underlying raw value (Value) can be a null reference (Nothing in Visual Basic). Ensure that the Value may needs to be cast into the attribute dependent type.

The time consumed by the first call of the method depends on the availability of the server, because of the attribute is requested on-demand and is cached for subsequent calls. This means, that further attribute requests will take use of already retrieved attribute information and will not demand additional network resources.

To improve the performance to query attributes you may consider the configuration of the attributes to prefetch while browsing the nodes using Attributes.

Attribute(string) ​

Retrieves the OpcAttributeInfo of the node that is known using the specified browseName.

csharp
public OpcAttributeInfo Attribute(string browseName)
vbnet
Public Function Attribute(browseName As String) As OpcAttributeInfo

Parameters

NameTypeDescription
browseNameStringThe known browse name of the OpcAttributeInfo to retrieve.

Returns

OpcAttributeInfo

An OpcAttributeInfo that is known using the specified browseName; otherwise a null reference (Nothing in Visual Basic) in case there the server does not provide such an attribute for the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe browseName is an empty string.
ArgumentNullExceptionThe browseName is a null reference (Nothing in Visual Basic).

Remarks

Although the server may provide an attribute, the Value (= an OpcValue) or its underlying raw value (Value) can be a null reference (Nothing in Visual Basic). Ensure that the Value may needs to be cast into the attribute dependent type.

The time consumed by the first call of the method depends on the availability of the server, because of the attribute is requested on-demand and is cached for subsequent calls. This means, that further attribute requests will take use of already retrieved attribute information and will not demand additional network resources.

To improve the performance to query attributes you may consider the configuration of the attributes to prefetch while browsing the nodes using Attributes.

Attributes ​

5 overloads

OverloadDescription
Attributes()Retrieves for each OpcAttribute identifier the according OpcAttributeInfo of the node.
Attributes(IEnumerable<OpcAttribute>)Retrieves for each OpcAttribute identifier specified by attributes the according OpcAttributeInfo of the node.
Attributes(params OpcAttribute[])Retrieves for each OpcAttribute identifier specified by attributes the according OpcAttributeInfo of the node.
Attributes(IEnumerable<string>)Retrieves the OpcAttributeInfo of the node that is known using the specified browseNames.
Attributes(params string[])Retrieves the OpcAttributeInfo of the node that is known using the specified browseNames.

Attributes() ​

Retrieves for each OpcAttribute identifier the according OpcAttributeInfo of the node.

csharp
public IEnumerable<OpcAttributeInfo> Attributes()
vbnet
Public Function Attributes() As IEnumerable(Of OpcAttributeInfo)

Returns

IEnumerable<OpcAttributeInfo>

A sequence of OpcAttributeInfo instances which provides the attribute identifier and attribute value of all in general defined node attributes (see OpcAttribute).

Remarks

Although the server may provide an attribute, the Value (= an OpcValue) or its underlying raw value (Value) can be a null reference (Nothing in Visual Basic). Ensure that the Value may needs to be cast into the attribute dependent type.

The time consumed by the first call of the method depends on the availability of the server, because of the attributes are requested on-demand and are cached for subsequent calls. This means, that further attribute requests will take use of already retrieved attribute information and will not demand additional network resources.

To improve the performance to query attributes you may consider the configuration of the attributes to prefetch while browsing the nodes using Attributes.

Attributes(IEnumerable<OpcAttribute>) ​

Retrieves for each OpcAttribute identifier specified by attributes the according OpcAttributeInfo of the node.

csharp
public IEnumerable<OpcAttributeInfo> Attributes(
    IEnumerable<OpcAttribute> attributes)
vbnet
Public Function Attributes(
    attributes As IEnumerable(Of OpcAttribute)) As IEnumerable(Of OpcAttributeInfo)

Parameters

NameTypeDescription
attributesIEnumerable<OpcAttribute>A sequence of OpcAttribute identifiers of the OpcAttributeInfo instances to retrieve.

Returns

IEnumerable<OpcAttributeInfo>

A sequence of OpcAttributeInfo instances which provides the attribute identifier and attribute value of the node attributes specified by the OpcAttribute identifiers defined by attributes.

Exceptions

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

Remarks

Although the server may provide an attribute, the Value (= an OpcValue) or its underlying raw value (Value) can be a null reference (Nothing in Visual Basic). Ensure that the Value may needs to be cast into the attribute dependent type.

The time consumed by the first call of the method depends on the availability of the server, because of the attributes are requested on-demand and are cached for subsequent calls. This means, that further attribute requests will take use of already retrieved attribute information and will not demand additional network resources.

To improve the performance to query attributes you may consider the configuration of the attributes to prefetch while browsing the nodes using Attributes.

Attributes(params OpcAttribute[]) ​

Retrieves for each OpcAttribute identifier specified by attributes the according OpcAttributeInfo of the node.

csharp
public IEnumerable<OpcAttributeInfo> Attributes(
    params OpcAttribute[] attributes)
vbnet
Public Function Attributes(
    ParamArray attributes As OpcAttribute()) As IEnumerable(Of OpcAttributeInfo)

Parameters

NameTypeDescription
attributesparams OpcAttribute[]An array of OpcAttribute identifiers of the OpcAttributeInfo instances to retrieve.

Returns

IEnumerable<OpcAttributeInfo>

An array of OpcAttributeInfo instances which provides the attribute identifier and attribute value of the node attributes specified by the OpcAttribute identifiers defined by attributes.

Exceptions

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

Remarks

Although the server may provide an attribute, the Value (= an OpcValue) or its underlying raw value (Value) can be a null reference (Nothing in Visual Basic). Ensure that the Value may needs to be cast into the attribute dependent type.

The time consumed by the first call of the method depends on the availability of the server, because of the attributes are requested on-demand and are cached for subsequent calls. This means, that further attribute requests will take use of already retrieved attribute information and will not demand additional network resources.

To improve the performance to query attributes you may consider the configuration of the attributes to prefetch while browsing the nodes using Attributes.

Attributes(IEnumerable<string>) ​

Retrieves the OpcAttributeInfo of the node that is known using the specified browseNames.

csharp
public IEnumerable<OpcAttributeInfo> Attributes(IEnumerable<string> browseNames)
vbnet
Public Function Attributes(
    browseNames As IEnumerable(Of String)) As IEnumerable(Of OpcAttributeInfo)

Parameters

NameTypeDescription
browseNamesIEnumerable<String>A sequence of known browse names of the OpcAttributeInfo to retrieve.

Returns

IEnumerable<OpcAttributeInfo>

A sequence of OpcAttributeInfo instances which provides the attribute identifier and attribute value of the node attributes specified by the browseNames passed.

Exceptions

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

Remarks

Although the server may provide an attribute, the Value (= an OpcValue) or its underlying raw value (Value) can be a null reference (Nothing in Visual Basic). Ensure that the Value may needs to be cast into the attribute dependent type.

The time consumed by the first call of the method depends on the availability of the server, because of the attributes are requested on-demand and are cached for subsequent calls. This means, that further attribute requests will take use of already retrieved attribute information and will not demand additional network resources.

To improve the performance to query attributes you may consider the configuration of the attributes to prefetch while browsing the nodes using Attributes.

Attributes(params string[]) ​

Retrieves the OpcAttributeInfo of the node that is known using the specified browseNames.

csharp
public IEnumerable<OpcAttributeInfo> Attributes(params string[] browseNames)
vbnet
Public Function Attributes(
    ParamArray browseNames As String()) As IEnumerable(Of OpcAttributeInfo)

Parameters

NameTypeDescription
browseNamesparams String[]An array of known browse names of the OpcAttributeInfo to retrieve.

Returns

IEnumerable<OpcAttributeInfo>

A sequence of OpcAttributeInfo instances which provides the attribute identifier and attribute value of the node attributes specified by the browseNames passed.

Exceptions

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

Remarks

Although the server may provide an attribute, the Value (= an OpcValue) or its underlying raw value (Value) can be a null reference (Nothing in Visual Basic). Ensure that the Value may needs to be cast into the attribute dependent type.

The time consumed by the first call of the method depends on the availability of the server, because of the attributes are requested on-demand and are cached for subsequent calls. This means, that further attribute requests will take use of already retrieved attribute information and will not demand additional network resources.

To improve the performance to query attributes you may consider the configuration of the attributes to prefetch while browsing the nodes using Attributes.

AttributeValue ​

2 overloads · since v2.9

OverloadDescription
AttributeValue(OpcAttribute)since v2.9Retrieves the value of the attribute specified.
AttributeValue<T>(OpcAttribute)since v2.9Retrieves the value of the attribute specified.

AttributeValue(OpcAttribute) ​

since v2.9

Retrieves the value of the attribute specified.

csharp
public object AttributeValue(OpcAttribute attribute)
vbnet
Public Function AttributeValue(attribute As OpcAttribute) As Object

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration which identifies the attribute its value is queried.

Returns

Object

The value of the attribute specified or a null reference (Nothing in Visual Basic) in case there the value of the attribute is a null reference or it is not supported by the current OpcNodeInfo.

Implements

AttributeValue

Remarks

The time consumed by the first call of the method depends on the availability of the server, because of the attribute is requested on-demand and is cached for subsequent calls. This means, that further attribute requests will take use of already retrieved attribute information and will not demand additional network resources.

To improve the performance to query attributes you may consider the configuration of the attributes to prefetch while browsing the nodes using Attributes.

AttributeValue<T>(OpcAttribute) ​

since v2.9

Retrieves the value of the attribute specified.

csharp
public T AttributeValue<T>(OpcAttribute attribute)
vbnet
Public Function AttributeValue(Of T)(attribute As OpcAttribute) As T

Type parameters

NameDescription
TThe expected type of value the attribute shall offer.

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration which identifies the attribute its value is queried.

Returns

T

The value of the attribute as the type T specified or the default value of the type T in case there the value of the attribute is a null reference (Nothing in Visual Basic) or it is not supported by the current OpcNodeInfo.

Implements

AttributeValue

Remarks

The time consumed by the first call of the method depends on the availability of the server, because of the attribute is requested on-demand and is cached for subsequent calls. This means, that further attribute requests will take use of already retrieved attribute information and will not demand additional network resources.

To improve the performance to query attributes you may consider the configuration of the attributes to prefetch while browsing the nodes using Attributes.

Child ​

3 overloads

OverloadDescription
Child(string)Retrieves the OpcNodeInfo of the child node that is known using the specified name of the node.
Child(OpcName)since v2.19Retrieves the OpcNodeInfo its Name matches exactly the name specified.
Child(OpcNamePath)since v2.19Retrieves the OpcNodeInfo following the path-of-names using the nodes its Name matches exactly the parts of the namePath specified.

Child(string) ​

Retrieves the OpcNodeInfo of the child node that is known using the specified name of the node.

csharp
public OpcNodeInfo Child(string name)
vbnet
Public Function Child(name As String) As OpcNodeInfo

Parameters

NameTypeDescription
nameStringThe nominal information of the child node to retrieve.

Returns

OpcNodeInfo

An OpcNodeInfo that is known using the specified name; otherwise a null reference (Nothing in Visual Basic) in case there the server does not provide such a child node for the node.

Exceptions

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

Remarks

The time consumed by the first call of the method depends on the availability of the server, because of the child is requested on-demand and is cached for subsequent calls. This means, that further child requests will take use of already retrieved child information and will not demand additional network resources.

Child(OpcName) ​

since v2.19

Retrieves the OpcNodeInfo its Name matches exactly the name specified.

csharp
public OpcNodeInfo Child(OpcName name)
vbnet
Public Function Child(name As OpcName) As OpcNodeInfo

Parameters

NameTypeDescription
nameOpcNameThe full qualified OpcName of the node to lookup.

Returns

OpcNodeInfo

An OpcNodeInfo that is known using the name specified, if such a node is a known child of this node. Otherwise a null reference (Nothing in Basic).

Exceptions

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

Child(OpcNamePath) ​

since v2.19

Retrieves the OpcNodeInfo following the path-of-names using the nodes its Name matches exactly the parts of the namePath specified.

csharp
public OpcNodeInfo Child(OpcNamePath namePath)
vbnet
Public Function Child(namePath As OpcNamePath) As OpcNodeInfo

Parameters

NameTypeDescription
namePathOpcNamePathThe OpcNamePath of full qualified OpcNames of the nodes to follow.

Returns

OpcNodeInfo

An OpcNodeInfo that has been lookup following the namePath specified, if such a node is a known child of this node (and its children). Otherwise a null reference (Nothing in Basic).

Exceptions

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

Children ​

3 overloads

OverloadDescription
Children()Retrieves for each child node of the node represented the according OpcNodeInfo.
Children(OpcNodeCategory)Retrieves for each child node of the category specified of the node represented the according OpcNodeInfo.
Children(OpcReferenceType)since v2.8Retrieves for each child node referenced using the referenceType specified the according OpcNodeInfo.

Children() ​

Retrieves for each child node of the node represented the according OpcNodeInfo.

csharp
public IEnumerable<OpcNodeInfo> Children()
vbnet
Public Function Children() As IEnumerable(Of OpcNodeInfo)

Returns

IEnumerable<OpcNodeInfo>

A sequence of OpcNodeInfo instances which provides the node information of all nodes referenced as child (see OpcNodeInfo).

Remarks

The time consumed by the first call of the method depends on the availability of the server, because of the nodes are requested on-demand and are cached for subsequent calls. This means, that further child requests will take use of already retrieved child information and will not demand additional network resources.

Children(OpcNodeCategory) ​

Retrieves for each child node of the category specified of the node represented the according OpcNodeInfo.

csharp
public IEnumerable<OpcNodeInfo> Children(OpcNodeCategory category)
vbnet
Public Function Children(
    category As OpcNodeCategory) As IEnumerable(Of OpcNodeInfo)

Parameters

NameTypeDescription
categoryOpcNodeCategoryOne of the members defined by the OpcNodeCategory enumeration which defines the classification of the child nodes to retrieve or a combination of the members.

Returns

IEnumerable<OpcNodeInfo>

A sequence of OpcNodeInfo instances which provides the node information of all nodes referenced as child of the category specified.

Remarks

The time consumed by the first call of the method depends on the availability of the server, because of the nodes are requested on-demand and are cached for subsequent calls. This means, that further child requests will take use of already retrieved child information and will not demand additional network resources.

Children(OpcReferenceType) ​

since v2.8

Retrieves for each child node referenced using the referenceType specified the according OpcNodeInfo.

csharp
public IEnumerable<OpcNodeInfo> Children(OpcReferenceType referenceType)
vbnet
Public Function Children(
    referenceType As OpcReferenceType) As IEnumerable(Of OpcNodeInfo)

Parameters

NameTypeDescription
referenceTypeOpcReferenceTypeOne of the members defined by the OpcReferenceType enumeration which defines the type of reference between the node represented and child nodes to retrieve.

Returns

IEnumerable<OpcNodeInfo>

A sequence of OpcNodeInfo instances which provides the node information of all nodes referenced as child using the referenceType specified.

Remarks

The time consumed by the first call of the method depends on the availability of the server, because of the nodes are requested on-demand and are cached for subsequent calls. This means, that further child requests will take use of already retrieved child information and will not demand additional network resources.

In case there the referenceType specified is not part of the reference types browsed using the Context of the current OpcNodeInfo (see ReferenceTypeIds) there is separate browse operation performed to query the children requested. In this case the child nodes are not cached and are re-queried on every call to this method.

Parent ​

Retrieves the OpcNodeInfo of the parent node that is known using the specified name of the node.

csharp
public OpcNodeInfo Parent(string name)
vbnet
Public Function Parent(name As String) As OpcNodeInfo

Parameters

NameTypeDescription
nameStringThe nominal information of the parent node to retrieve.

Returns

OpcNodeInfo

An OpcNodeInfo that is known using the specified name; otherwise a null reference (Nothing in Visual Basic) in case there the server does not provide such a parent node for the node.

Exceptions

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

Remarks

The time consumed by the first call of the method depends on the availability of the server, because of the parent is requested on-demand and is cached for subsequent calls. This means, that further parent requests will take use of already retrieved parent information and will not demand additional network resources.

Parents ​

3 overloads

OverloadDescription
Parents()Retrieves for each parent node of the node represented the according OpcNodeInfo.
Parents(OpcNodeCategory)Retrieves for each parent node of the category specified of the node represented the according OpcNodeInfo.
Parents(OpcReferenceType)since v2.8Retrieves for each parent node referenced using the referenceType specified the according OpcNodeInfo.

Parents() ​

Retrieves for each parent node of the node represented the according OpcNodeInfo.

csharp
public IEnumerable<OpcNodeInfo> Parents()
vbnet
Public Function Parents() As IEnumerable(Of OpcNodeInfo)

Returns

IEnumerable<OpcNodeInfo>

A sequence of OpcNodeInfo instances which provides the node information of all nodes referenced as parent (see OpcNodeInfo).

Remarks

The time consumed by the first call of the method depends on the availability of the server, because of the nodes are requested on-demand and are cached for subsequent calls. This means, that further parent requests will take use of already retrieved parent information and will not demand additional network resources.

Parents(OpcNodeCategory) ​

Retrieves for each parent node of the category specified of the node represented the according OpcNodeInfo.

csharp
public IEnumerable<OpcNodeInfo> Parents(OpcNodeCategory category)
vbnet
Public Function Parents(
    category As OpcNodeCategory) As IEnumerable(Of OpcNodeInfo)

Parameters

NameTypeDescription
categoryOpcNodeCategoryOne of the members defined by the OpcNodeCategory enumeration which defines the classification of the parent nodes to retrieve or a combination of the members.

Returns

IEnumerable<OpcNodeInfo>

A sequence of OpcNodeInfo instances which provides the node information of all nodes referenced as parent of the category specified.

Remarks

The time consumed by the first call of the method depends on the availability of the server, because of the nodes are requested on-demand and are cached for subsequent calls. This means, that further parent requests will take use of already retrieved parent information and will not demand additional network resources.

Parents(OpcReferenceType) ​

since v2.8

Retrieves for each parent node referenced using the referenceType specified the according OpcNodeInfo.

csharp
public IEnumerable<OpcNodeInfo> Parents(OpcReferenceType referenceType)
vbnet
Public Function Parents(
    referenceType As OpcReferenceType) As IEnumerable(Of OpcNodeInfo)

Parameters

NameTypeDescription
referenceTypeOpcReferenceTypeOne of the members defined by the OpcReferenceType enumeration which defines the type of reference between the node represented and parent nodes to retrieve.

Returns

IEnumerable<OpcNodeInfo>

A sequence of OpcNodeInfo instances which provides the node information of all nodes referenced as parent using the referenceType specified.

Remarks

The time consumed by the first call of the method depends on the availability of the server, because of the nodes are requested on-demand and are cached for subsequent calls. This means, that further child requests will take use of already retrieved child information and will not demand additional network resources.

In case there the referenceType specified is not part of the reference types browsed using the Context of the current OpcNodeInfo (see ReferenceTypeIds) there is separate browse operation performed to query the parents requested. In this case the parent nodes are not cached and are re-queried on every call to this method.