Skip to content

Reference

OpcNodeReferenceSource Members

Provides a set of methods to construct OpcNodeReference instances using different source node information.

Reference

OpcNodeReferenceSource Members ​

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

Constructors ​

OpcNodeReferenceSource ​

2 overloads

OverloadDescription
OpcNodeReferenceSource(IOpcNode)Initializes a new instance of the OpcNodeReferenceSource class using the node specified from which the references constructed originate from.
OpcNodeReferenceSource(OpcNodeId)Initializes a new instance of the OpcNodeReferenceSource class using the nodeId to identify the node from which the references constructed originate from.

OpcNodeReferenceSource(IOpcNode) ​

Initializes a new instance of the OpcNodeReferenceSource class using the node specified from which the references constructed originate from.

csharp
public OpcNodeReferenceSource(IOpcNode node)
vbnet
Public Sub New(node As IOpcNode)

Parameters

NameTypeDescription
nodeIOpcNodeThe IOpcNode used as the source node of the references constructed.

Exceptions

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

OpcNodeReferenceSource(OpcNodeId) ​

Initializes a new instance of the OpcNodeReferenceSource class using the nodeId to identify the node from which the references constructed originate from.

csharp
public OpcNodeReferenceSource(OpcNodeId nodeId)
vbnet
Public Sub New(nodeId As OpcNodeId)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId which identifies the source node of the references constructed.

Exceptions

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

Properties ​

Node ​

Gets the node from which the references constructed originate from.

csharp
public IOpcNode Node { get; }
vbnet
Public ReadOnly Property Node As IOpcNode

Property value

IOpcNode

The IOpcNode which is used as the source node of the references constructed or a null refernce (Nothing in Visual Basic) in case there this OpcNodeReferenceSource has been initialized using a OpcNodeId which identifies the node the references shall originate from.

NodeId ​

Gets the identifier of the node from which the references constructred originate from.

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

Property value

OpcNodeId

The OpcNodeId which identifies the node from which the references constructed originate from.

Methods ​

To ​

8 overloads

OverloadDescription
To(IEnumerable<OpcReference>)Provides a node / references bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the references specified.
To(params OpcReference[])Provides a node / references bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the references specified.
To(IOpcNode)Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the references.
To(IOpcNode, OpcReferenceType)Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference.
To(IOpcNode, OpcNodeId)Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference.
To(OpcNodeId)Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the references.
To(OpcNodeId, OpcReferenceType)Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference.
To(OpcNodeId, OpcNodeId)Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference.

To(IEnumerable<OpcReference>) ​

Provides a node / references bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the references specified.

csharp
public OpcNodeReference To(IEnumerable<OpcReference> references)
vbnet
Public Function [To](
    references As IEnumerable(Of OpcReference)) As OpcNodeReference

Parameters

NameTypeDescription
referencesIEnumerable<OpcReference>A sequence of OpcReference instances to associate with the node information refered to in this OpcNodeReferenceSource.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which combines the node information of this OpcNodeReferenceSource and the references specified.

To(params OpcReference[]) ​

Provides a node / references bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the references specified.

csharp
public OpcNodeReference To(params OpcReference[] references)
vbnet
Public Function [To](
    ParamArray references As OpcReference()) As OpcNodeReference

Parameters

NameTypeDescription
referencesparams OpcReference[]An array of OpcReference instances to associate with the node information refered to in this OpcNodeReferenceSource.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which combines the node information of this OpcNodeReferenceSource and the references specified.

To(IOpcNode) ​

Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the references. The references created represent a ParentToChild and ChildToParent relation using Organizes as the type of reference.

csharp
public OpcNodeReferenceSet To(IOpcNode targetNode)
vbnet
Public Function [To](targetNode As IOpcNode) As OpcNodeReferenceSet

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode used as the target one reference will cease in, while the second reference uses it the other way round.

Returns

OpcNodeReferenceSet

A new instance of the OpcNodeReferenceSet class which owns two OpcNodeReference instances representing a bidirectional relation between the node refered to by this OpcNodeReferenceSource and the targetNode specified.

Exceptions

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

To(IOpcNode, OpcReferenceType) ​

Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference. The references created represent a ParentToChild and ChildToParent relation using the referenceType as the type of reference.

csharp
public OpcNodeReferenceSet To(
    IOpcNode targetNode,
    OpcReferenceType referenceType)
vbnet
Public Function [To](
    targetNode As IOpcNode,
    referenceType As OpcReferenceType) As OpcNodeReferenceSet

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode used as the target one reference will cease in, while the second reference uses it the other way round.
referenceTypeOpcReferenceTypeOne of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.

Returns

OpcNodeReferenceSet

A new instance of the OpcNodeReferenceSet class which owns two OpcNodeReference instances representing a bidirectional relation between the node refered to by this OpcNodeReferenceSource and the targetNode specified.

Exceptions

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

To(IOpcNode, OpcNodeId) ​

Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference. The references created represent a ParentToChild and ChildToParent relation using the type of reference identified by the referenceTypeId specified.

csharp
public OpcNodeReferenceSet To(IOpcNode targetNode, OpcNodeId referenceTypeId)
vbnet
Public Function [To](
    targetNode As IOpcNode,
    referenceTypeId As OpcNodeId) As OpcNodeReferenceSet

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode used as the target one reference will cease in, while the second reference uses it the other way round.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to represent between the targetNode and its opponent.

Returns

OpcNodeReferenceSet

A new instance of the OpcNodeReferenceSet class which owns two OpcNodeReference instances representing a bidirectional relation between the node refered to by this OpcNodeReferenceSource and the targetNode specified.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe targetNode or referenceTypeId is a null reference (Nothing in Visual Basic).

To(OpcNodeId) ​

Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the references. The references created represent a ParentToChild and ChildToParent relation using Organizes as the type of reference.

csharp
public OpcNodeReferenceSet To(OpcNodeId targetNodeId)
vbnet
Public Function [To](targetNodeId As OpcNodeId) As OpcNodeReferenceSet

Parameters

NameTypeDescription
targetNodeIdOpcNodeIdThe OpcNodeId which identifies the node used as the target one reference will cease in, while the second reference uses it the other way round.

Returns

OpcNodeReferenceSet

A new instance of the OpcNodeReferenceSet class which owns two OpcNodeReference instances representing a bidirectional relation between the node refered to by this OpcNodeReferenceSource and the node identified by the targetNodeId specified.

Exceptions

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

To(OpcNodeId, OpcReferenceType) ​

Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference. The references created represent a ParentToChild and ChildToParent relation using the referenceType as the type of reference.

csharp
public OpcNodeReferenceSet To(
    OpcNodeId targetNodeId,
    OpcReferenceType referenceType)
vbnet
Public Function [To](
    targetNodeId As OpcNodeId,
    referenceType As OpcReferenceType) As OpcNodeReferenceSet

Parameters

NameTypeDescription
targetNodeIdOpcNodeIdThe OpcNodeId which identifies the node used as the target one reference will cease in, while the second reference uses it the other way round.
referenceTypeOpcReferenceTypeOne of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.

Returns

OpcNodeReferenceSet

A new instance of the OpcNodeReferenceSet class which owns two OpcNodeReference instances representing a bidirectional relation between the node refered to by this OpcNodeReferenceSource and the node identified by the targetNodeId specified.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe targetNodeId or referenceType is a null reference (Nothing in Visual Basic).

To(OpcNodeId, OpcNodeId) ​

Provides a set of node / reference bundles in a new instance of the OpcNodeReferenceSet class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference. The references created represent a ParentToChild and ChildToParent relation using the type of reference identified by the referenceTypeId specified.

csharp
public OpcNodeReferenceSet To(OpcNodeId targetNodeId, OpcNodeId referenceTypeId)
vbnet
Public Function [To](
    targetNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId) As OpcNodeReferenceSet

Parameters

NameTypeDescription
targetNodeIdOpcNodeIdThe OpcNodeId which identifies the node used as the target one reference will cease in, while the second reference uses it the other way round.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to represent between the target identified by the targetNodeId and its opponent.

Returns

OpcNodeReferenceSet

A new instance of the OpcNodeReferenceSet class which owns two OpcNodeReference instances representing a bidirectional relation between the node refered to by this OpcNodeReferenceSource and the node identified by the targetNodeId specified.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe targetNodeId or referenceTypeId is a null reference (Nothing in Visual Basic).

ToChild ​

6 overloads

OverloadDescription
ToChild(IOpcNode)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference.
ToChild(IOpcNode, OpcReferenceType)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference.
ToChild(IOpcNode, OpcNodeId)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference.
ToChild(OpcNodeId)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference.
ToChild(OpcNodeId, OpcReferenceType)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference.
ToChild(OpcNodeId, OpcNodeId)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference.

ToChild(IOpcNode) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference. The reference created represents a ParentToChild relation using Organizes as the type of reference.

csharp
public OpcNodeReference ToChild(IOpcNode targetNode)
vbnet
Public Function ToChild(targetNode As IOpcNode) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode in which the reference constructed ceases.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode specified.

Exceptions

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

ToChild(IOpcNode, OpcReferenceType) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference. The reference created represents a ParentToChild relation using the referenceType as the type of reference.

csharp
public OpcNodeReference ToChild(
    IOpcNode targetNode,
    OpcReferenceType referenceType)
vbnet
Public Function ToChild(
    targetNode As IOpcNode,
    referenceType As OpcReferenceType) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode in which the reference constructed ceases.
referenceTypeOpcReferenceTypeOne of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode specified.

Exceptions

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

ToChild(IOpcNode, OpcNodeId) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference. The reference created represents a ParentToChild relation using the type of reference identified by the referenceTypeId specified.

csharp
public OpcNodeReference ToChild(IOpcNode targetNode, OpcNodeId referenceTypeId)
vbnet
Public Function ToChild(
    targetNode As IOpcNode,
    referenceTypeId As OpcNodeId) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode in which the reference constructed ceases.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to represent between the targetNode and its opponent.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode specified.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe targetNode or referenceTypeId is a null reference (Nothing in Visual Basic).

ToChild(OpcNodeId) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference. The reference created represents a ParentToChild relation using Organizes as the type of reference.

csharp
public OpcNodeReference ToChild(OpcNodeId targetNodeId)
vbnet
Public Function ToChild(targetNodeId As OpcNodeId) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIdOpcNodeIdThe OpcNodeId which identifies the node in which the reference constructed ceases.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the node identified by the targetNodeId specified.

Exceptions

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

ToChild(OpcNodeId, OpcReferenceType) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference. The reference created represents a ParentToChild relation using the referenceType as the type of reference.

csharp
public OpcNodeReference ToChild(
    OpcNodeId targetNodeId,
    OpcReferenceType referenceType)
vbnet
Public Function ToChild(
    targetNodeId As OpcNodeId,
    referenceType As OpcReferenceType) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIdOpcNodeIdThe OpcNodeId which identifies the node in which the reference constructed ceases.
referenceTypeOpcReferenceTypeOne of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the node identified by the targetNodeId specified.

Exceptions

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

ToChild(OpcNodeId, OpcNodeId) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference. The reference created represents a ParentToChild relation using the type of reference identified by the referenceTypeId specified.

csharp
public OpcNodeReference ToChild(
    OpcNodeId targetNodeId,
    OpcNodeId referenceTypeId)
vbnet
Public Function ToChild(
    targetNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIdOpcNodeIdThe OpcNodeId which identifies the node in which the reference constructed ceases.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to represent between the target identified by the targetNodeId and its opponent.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the node identified by the targetNodeId specified.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe targetNodeId or referenceTypeId is a null reference (Nothing in Visual Basic).

ToParent ​

6 overloads

OverloadDescription
ToParent(IOpcNode)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference.
ToParent(IOpcNode, OpcReferenceType)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference.
ToParent(IOpcNode, OpcNodeId)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference.
ToParent(OpcNodeId)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference.
ToParent(OpcNodeId, OpcReferenceType)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference.
ToParent(OpcNodeId, OpcNodeId)Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference.

ToParent(IOpcNode) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference. The reference created represents a ChildToParent relation using Organizes as the type of reference.

csharp
public OpcNodeReference ToParent(IOpcNode targetNode)
vbnet
Public Function ToParent(targetNode As IOpcNode) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode in which the reference constructed ceases.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode specified.

Exceptions

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

ToParent(IOpcNode, OpcReferenceType) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference. The reference created represents a ChildToParent relation using the referenceType as the type of reference.

csharp
public OpcNodeReference ToParent(
    IOpcNode targetNode,
    OpcReferenceType referenceType)
vbnet
Public Function ToParent(
    targetNode As IOpcNode,
    referenceType As OpcReferenceType) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode in which the reference constructed ceases.
referenceTypeOpcReferenceTypeOne of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode specified.

Exceptions

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

ToParent(IOpcNode, OpcNodeId) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNode as the target of the reference. The reference created represents a ChildToParent relation using the type of reference identified by the referenceTypeId specified.

csharp
public OpcNodeReference ToParent(IOpcNode targetNode, OpcNodeId referenceTypeId)
vbnet
Public Function ToParent(
    targetNode As IOpcNode,
    referenceTypeId As OpcNodeId) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode in which the reference constructed ceases.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to represent between the targetNode and its opponent.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode specified.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe targetNode or referenceTypeId is a null reference (Nothing in Visual Basic).

ToParent(OpcNodeId) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference. The reference created represents a ChildToParent relation using Organizes as the type of reference.

csharp
public OpcNodeReference ToParent(OpcNodeId targetNodeId)
vbnet
Public Function ToParent(targetNodeId As OpcNodeId) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIdOpcNodeIdThe OpcNodeId which identifies the node in which the reference constructed ceases.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the node identified by the targetNodeId specified.

Exceptions

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

ToParent(OpcNodeId, OpcReferenceType) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference. The reference created represents a ChildToParent relation using the referenceType as the type of reference.

csharp
public OpcNodeReference ToParent(
    OpcNodeId targetNodeId,
    OpcReferenceType referenceType)
vbnet
Public Function ToParent(
    targetNodeId As OpcNodeId,
    referenceType As OpcReferenceType) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIdOpcNodeIdThe OpcNodeId which identifies the node in which the reference constructed ceases.
referenceTypeOpcReferenceTypeOne of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the node identified by the targetNodeId specified.

Exceptions

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

ToParent(OpcNodeId, OpcNodeId) ​

Provides a node / reference bundle in a new instance of the OpcNodeReference class using the source node information of this OpcNodeReferenceSource and the targetNodeId as the identifier of the target of the reference. The reference created represents a ChildToParent relation using the type of reference identified by the referenceTypeId specified.

csharp
public OpcNodeReference ToParent(
    OpcNodeId targetNodeId,
    OpcNodeId referenceTypeId)
vbnet
Public Function ToParent(
    targetNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId) As OpcNodeReference

Parameters

NameTypeDescription
targetNodeIdOpcNodeIdThe OpcNodeId which identifies the node in which the reference constructed ceases.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to represent between the target identified by the targetNodeId and its opponent.

Returns

OpcNodeReference

A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the node identified by the targetNodeId specified.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe targetNodeId or referenceTypeId is a null reference (Nothing in Visual Basic).

ToString ​

override

Returns a string representing the information contained in the OpcNodeReferenceSource.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

A string which describes the information in this OpcNodeReferenceSource.

Overrides

ToString()