Skip to content

Reference

OpcNodeReference Members

Defines a bunch of OpcReference instances associated with a specific node using its IOpcNode instance or a OpcNodeId to identify the belonging node the references are used for.

Reference

OpcNodeReference Members ​

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

Constructors ​

OpcNodeReference ​

6 overloads

OverloadDescription
OpcNodeReference(IOpcNode)since v2.7Initializes a new instance of the OpcNodeReference class using the node specified.
OpcNodeReference(IOpcNode, IEnumerable<OpcReference>)since v2.7Initializes a new instance of the OpcNodeReference class using the node and its references specified.
OpcNodeReference(IOpcNode, params OpcReference[])since v2.7Initializes a new instance of the OpcNodeReference class using the node and its references specified.
OpcNodeReference(OpcNodeId)Initializes a new instance of the OpcNodeReference class using the nodeId specified.
OpcNodeReference(OpcNodeId, IEnumerable<OpcReference>)Initializes a new instance of the OpcNodeReference class using the nodeId and its node specific references specified.
OpcNodeReference(OpcNodeId, params OpcReference[])Initializes a new instance of the OpcNodeReference class using the nodeId and its node specific references specified.

OpcNodeReference(IOpcNode) ​

since v2.7

Initializes a new instance of the OpcNodeReference class using the node specified.

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

Parameters

NameTypeDescription
nodeIOpcNodeThe IOpcNode instance its references are organized by the new OpcNodeReference.

Exceptions

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

OpcNodeReference(IOpcNode, IEnumerable<OpcReference>) ​

since v2.7

Initializes a new instance of the OpcNodeReference class using the node and its references specified.

csharp
public OpcNodeReference(IOpcNode node, IEnumerable<OpcReference> references)
vbnet
Public Sub New(node As IOpcNode, references As IEnumerable(Of OpcReference))

Parameters

NameTypeDescription
nodeIOpcNodeThe IOpcNode instance its references are organized by the new OpcNodeReference.
referencesIEnumerable<OpcReference>A sequence of OpcReference instances belonging to the node.

Exceptions

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

OpcNodeReference(IOpcNode, params OpcReference[]) ​

since v2.7

Initializes a new instance of the OpcNodeReference class using the node and its references specified.

csharp
public OpcNodeReference(IOpcNode node, params OpcReference[] references)
vbnet
Public Sub New(node As IOpcNode, ParamArray references As OpcReference())

Parameters

NameTypeDescription
nodeIOpcNodeThe IOpcNode instance its references are organized by the new OpcNodeReference.
referencesparams OpcReference[]An array of OpcReference instances belonging to the node.

Exceptions

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

OpcNodeReference(OpcNodeId) ​

Initializes a new instance of the OpcNodeReference class using the nodeId specified.

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

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId which identifies the node its references are organized by the new OpcNodeReference.

Exceptions

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

OpcNodeReference(OpcNodeId, IEnumerable<OpcReference>) ​

Initializes a new instance of the OpcNodeReference class using the nodeId and its node specific references specified.

csharp
public OpcNodeReference(OpcNodeId nodeId, IEnumerable<OpcReference> references)
vbnet
Public Sub New(nodeId As OpcNodeId, references As IEnumerable(Of OpcReference))

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId which identifies the node its references are organized by the new OpcNodeReference.
referencesIEnumerable<OpcReference>A sequence of OpcReference instances belonging to the nodeId.

Exceptions

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

OpcNodeReference(OpcNodeId, params OpcReference[]) ​

Initializes a new instance of the OpcNodeReference class using the nodeId and its node specific references specified.

csharp
public OpcNodeReference(OpcNodeId nodeId, params OpcReference[] references)
vbnet
Public Sub New(nodeId As OpcNodeId, ParamArray references As OpcReference())

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId which identifies the node its references are organized by the new OpcNodeReference.
referencesparams OpcReference[]An array of OpcReference instances belonging to the nodeId.

Exceptions

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

Properties ​

Node ​

since v2.7

Gets the node to which the References belong to.

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 or a null refernce (Nothing in Visual Basic) in case there this OpcNodeReference has been initialized using a OpcNodeId which identifies the node the References belong to.

NodeId ​

Gets the identifier of the node to which the References belong to.

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

Property value

OpcNodeId

The OpcNodeId which identifies the node to which the References belong to.

References ​

Gets a collection of OpcReference instances which belong the node identified by the NodeId or refered to in the Node property.

csharp
public OpcReferenceCollection References { get; }
vbnet
Public ReadOnly Property References As OpcReferenceCollection

Property value

OpcReferenceCollection

An instance of the OpcReferenceCollection class which contains the OpcReference instances which belong to the node its references are maintained by this OpcNodeReference.

Methods ​

From ​

static · 2 overloads · since v2.7

OverloadDescription
From(OpcNodeId)static · since v2.7Provides a new OpcNodeReferenceSource initialized with the nodeId specified to construct OpcNodeReference instances using the nodeId as the identifier of the source node for the subsequent defined OpcNodeReference instances.
From(IOpcNode)static · since v2.7Provides a new OpcNodeReferenceSource initialized with the node specified to construct OpcNodeReference instances using the node as the source node for the subsequent defined OpcNodeReference instances.

From(OpcNodeId) ​

static · since v2.7

Provides a new OpcNodeReferenceSource initialized with the nodeId specified to construct OpcNodeReference instances using the nodeId as the identifier of the source node for the subsequent defined OpcNodeReference instances.

csharp
public static OpcNodeReferenceSource From(OpcNodeId nodeId)
vbnet
Public Shared Function From(nodeId As OpcNodeId) As OpcNodeReferenceSource

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId which identifies the node from which the references constructed originate from.

Returns

OpcNodeReferenceSource

A new instance of the OpcNodeReferenceSource class initialized with the nodeId specified.

Exceptions

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

From(IOpcNode) ​

static · since v2.7

Provides a new OpcNodeReferenceSource initialized with the node specified to construct OpcNodeReference instances using the node as the source node for the subsequent defined OpcNodeReference instances.

csharp
public static OpcNodeReferenceSource From(IOpcNode node)
vbnet
Public Shared Function From(node As IOpcNode) As OpcNodeReferenceSource

Parameters

NameTypeDescription
nodeIOpcNodeThe IOpcNode from which the references constructed originate from.

Returns

OpcNodeReferenceSource

A new instance of the OpcNodeReferenceSource class initialized with the node specified.

Exceptions

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

To ​

static · 6 overloads · since v2.7

OverloadDescription
To(IOpcNode)static · since v2.7Provides a bidirectional reference using the targetNode as the target of the reference.
To(IOpcNode, OpcReferenceType)static · since v2.7Provides a bidirectional reference using the targetNode as the target of the reference.
To(IOpcNode, OpcNodeId)static · since v2.7Provides a bidirectional reference using the targetNode as the target of the reference.
To(OpcNodeId)static · since v2.7Provides a bidirectional reference using the targetNodeId as the identifier of the target of the reference.
To(OpcNodeId, OpcReferenceType)static · since v2.7Provides a bidirectional reference using the targetNodeId as the identifier of the target of the reference.
To(OpcNodeId, OpcNodeId)static · since v2.7Provides a bidirectional reference using the targetNodeId as the identifier of target of the reference.

To(IOpcNode) ​

static · since v2.7

Provides a bidirectional reference using the targetNode as the target of the reference. The reference created represents a ParentToChild and ChildToParent relation using Organizes as the type of reference.

csharp
public static OpcBidirectionalReference To(IOpcNode targetNode)
vbnet
Public Shared Function [To](targetNode As IOpcNode) As OpcBidirectionalReference

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode in which the reference constructed ceases.

Returns

OpcBidirectionalReference

A new instance of the OpcBidirectionalReference class initialized with the targetNode specified and setup using the Organizes in a bidirectional manner.

Exceptions

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

To(IOpcNode, OpcReferenceType) ​

static · since v2.7

Provides a bidirectional reference using the targetNode as the target of the reference. The reference created represents a ParentToChild and ChildToParent relation using the referenceType as the type of reference.

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

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

OpcBidirectionalReference

A new instance of the OpcBidirectionalReference class initialized with the targetNode specified and setup using the referenceType passed in a bidirectional manner.

Exceptions

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

To(IOpcNode, OpcNodeId) ​

static · since v2.7

Provides a bidirectional reference using the targetNode as the target of the reference. The reference created represents a ParentToChild and ChildToParent relation using the type of reference identified by the referenceTypeId specified.

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

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

OpcBidirectionalReference

A new instance of the OpcBidirectionalReference class initialized with the targetNode specified and setup using the referenceTypeId passed in a bidirectional manner.

Exceptions

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

To(OpcNodeId) ​

static · since v2.7

Provides a bidirectional reference using the targetNodeId as the identifier of the target of the reference. The reference created represents a ParentToChild and ChildToParent relation using Organizes as the type of reference.

csharp
public static OpcBidirectionalReference To(OpcNodeId targetNodeId)
vbnet
Public Shared Function [To](
    targetNodeId As OpcNodeId) As OpcBidirectionalReference

Parameters

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

Returns

OpcBidirectionalReference

A new instance of the OpcBidirectionalReference class initialized with the targetNodeId specified and setup using the Organizes in a bidirectional manner.

Exceptions

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

To(OpcNodeId, OpcReferenceType) ​

static · since v2.7

Provides a bidirectional reference using the targetNodeId as the identifier of the target of the reference. The reference created represents a ParentToChild and ChildToParent relation using the referenceType as the type of reference.

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

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

OpcBidirectionalReference

A new instance of the OpcBidirectionalReference class initialized with the targetNodeId specified and setup using the referenceType passed in a bidirectional manner.

Exceptions

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

To(OpcNodeId, OpcNodeId) ​

static · since v2.7

Provides a bidirectional reference using the targetNodeId as the identifier of target of the reference. The reference created represents a ParentToChild and ChildToParent relation using the type of reference identified by the referenceTypeId specified.

csharp
public static OpcBidirectionalReference To(
    OpcNodeId targetNodeId,
    OpcNodeId referenceTypeId)
vbnet
Public Shared Function [To](
    targetNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId) As OpcBidirectionalReference

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

OpcBidirectionalReference

A new instance of the OpcBidirectionalReference class initialized with the targetNodeId specified and setup using the referenceTypeId passed in a bidirectional manner.

Exceptions

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

ToChild ​

static · 6 overloads · since v2.7

OverloadDescription
ToChild(IOpcNode)static · since v2.7Provides a unidirectional reference using the targetNode as the target of the reference.
ToChild(IOpcNode, OpcReferenceType)static · since v2.7Provides a unidirectional reference using the targetNode as the target of the reference.
ToChild(IOpcNode, OpcNodeId)static · since v2.7Provides a unidirectional reference using the targetNode as the target of the reference.
ToChild(OpcNodeId)static · since v2.7Provides a unidirectional reference using the targetNodeId as the identifier of the target of the reference.
ToChild(OpcNodeId, OpcReferenceType)static · since v2.7Provides a unidirectional reference using the targetNodeId as the identifier of the target of the reference.
ToChild(OpcNodeId, OpcNodeId)static · since v2.7Provides a unidirectional reference using the targetNodeId as the identifier of target of the reference.

ToChild(IOpcNode) ​

static · since v2.7

Provides a unidirectional reference using the targetNode as the target of the reference. The reference created represents a ParentToChild relation using Organizes as the type of reference.

csharp
public static OpcReference ToChild(IOpcNode targetNode)
vbnet
Public Shared Function ToChild(targetNode As IOpcNode) As OpcReference

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode in which the reference constructed ceases.

Returns

OpcReference

A new instance of the OpcReference class initialized with the targetNode specified and setup using the Organizes in a unidirectional manner.

Exceptions

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

ToChild(IOpcNode, OpcReferenceType) ​

static · since v2.7

Provides a unidirectional reference using 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 static OpcReference ToChild(
    IOpcNode targetNode,
    OpcReferenceType referenceType)
vbnet
Public Shared Function ToChild(
    targetNode As IOpcNode,
    referenceType As OpcReferenceType) As OpcReference

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

OpcReference

A new instance of the OpcReference class initialized with the targetNode specified and setup using the referenceType passed in a unidirectional manner.

Exceptions

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

ToChild(IOpcNode, OpcNodeId) ​

static · since v2.7

Provides a unidirectional reference using 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 static OpcReference ToChild(
    IOpcNode targetNode,
    OpcNodeId referenceTypeId)
vbnet
Public Shared Function ToChild(
    targetNode As IOpcNode,
    referenceTypeId As OpcNodeId) As OpcReference

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

OpcReference

A new instance of the OpcReference class initialized with the targetNode specified and setup using the referenceTypeId passed in a unidirectional manner.

Exceptions

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

ToChild(OpcNodeId) ​

static · since v2.7

Provides a unidirectional reference using 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 static OpcReference ToChild(OpcNodeId targetNodeId)
vbnet
Public Shared Function ToChild(targetNodeId As OpcNodeId) As OpcReference

Parameters

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

Returns

OpcReference

A new instance of the OpcReference class initialized with the targetNodeId specified and setup using the Organizes in a unidirectional manner.

Exceptions

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

ToChild(OpcNodeId, OpcReferenceType) ​

static · since v2.7

Provides a unidirectional reference using 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 static OpcReference ToChild(
    OpcNodeId targetNodeId,
    OpcReferenceType referenceType)
vbnet
Public Shared Function ToChild(
    targetNodeId As OpcNodeId,
    referenceType As OpcReferenceType) As OpcReference

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

OpcReference

A new instance of the OpcReference class initialized with the targetNodeId specified and setup using the referenceType passed in a unidirectional manner.

Exceptions

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

ToChild(OpcNodeId, OpcNodeId) ​

static · since v2.7

Provides a unidirectional reference using the targetNodeId as the identifier of target of the reference. The reference created represents a ParentToChild relation using the type of reference identified by the referenceTypeId specified.

csharp
public static OpcReference ToChild(
    OpcNodeId targetNodeId,
    OpcNodeId referenceTypeId)
vbnet
Public Shared Function ToChild(
    targetNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId) As OpcReference

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

OpcReference

A new instance of the OpcReference class initialized with the targetNodeId specified and setup using the referenceTypeId passed in a unidirectional manner.

Exceptions

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

ToParent ​

static · 6 overloads · since v2.7

OverloadDescription
ToParent(IOpcNode)static · since v2.7Provides a unidirectional reference using the targetNode as the target of the reference.
ToParent(IOpcNode, OpcReferenceType)static · since v2.7Provides a unidirectional reference using the targetNode as the target of the reference.
ToParent(IOpcNode, OpcNodeId)static · since v2.7Provides a unidirectional reference using the targetNode as the target of the reference.
ToParent(OpcNodeId)static · since v2.7Provides a unidirectional reference using the targetNodeId as the identifier of the target of the reference.
ToParent(OpcNodeId, OpcReferenceType)static · since v2.7Provides a unidirectional reference using the targetNodeId as the identifier of the target of the reference.
ToParent(OpcNodeId, OpcNodeId)static · since v2.7Provides a unidirectional reference using the targetNodeId as the identifier of target of the reference.

ToParent(IOpcNode) ​

static · since v2.7

Provides a unidirectional reference using the targetNode as the target of the reference. The reference created represents a ChildToParent relation using Organizes as the type of reference.

csharp
public static OpcReference ToParent(IOpcNode targetNode)
vbnet
Public Shared Function ToParent(targetNode As IOpcNode) As OpcReference

Parameters

NameTypeDescription
targetNodeIOpcNodeThe IOpcNode in which the reference constructed ceases.

Returns

OpcReference

A new instance of the OpcReference class initialized with the targetNode specified and setup using the Organizes in a unidirectional manner.

Exceptions

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

ToParent(IOpcNode, OpcReferenceType) ​

static · since v2.7

Provides a unidirectional reference using 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 static OpcReference ToParent(
    IOpcNode targetNode,
    OpcReferenceType referenceType)
vbnet
Public Shared Function ToParent(
    targetNode As IOpcNode,
    referenceType As OpcReferenceType) As OpcReference

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

OpcReference

A new instance of the OpcReference class initialized with the targetNode specified and setup using the referenceType passed in a unidirectional manner.

Exceptions

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

ToParent(IOpcNode, OpcNodeId) ​

static · since v2.7

Provides a unidirectional reference using 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 static OpcReference ToParent(
    IOpcNode targetNode,
    OpcNodeId referenceTypeId)
vbnet
Public Shared Function ToParent(
    targetNode As IOpcNode,
    referenceTypeId As OpcNodeId) As OpcReference

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

OpcReference

A new instance of the OpcReference class initialized with the targetNode specified and setup using the referenceTypeId passed in a unidirectional manner.

Exceptions

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

ToParent(OpcNodeId) ​

static · since v2.7

Provides a unidirectional reference using 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 static OpcReference ToParent(OpcNodeId targetNodeId)
vbnet
Public Shared Function ToParent(targetNodeId As OpcNodeId) As OpcReference

Parameters

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

Returns

OpcReference

A new instance of the OpcReference class initialized with the targetNodeId specified and setup using the Organizes in a unidirectional manner.

Exceptions

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

ToParent(OpcNodeId, OpcReferenceType) ​

static · since v2.7

Provides a unidirectional reference using 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 static OpcReference ToParent(
    OpcNodeId targetNodeId,
    OpcReferenceType referenceType)
vbnet
Public Shared Function ToParent(
    targetNodeId As OpcNodeId,
    referenceType As OpcReferenceType) As OpcReference

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

OpcReference

A new instance of the OpcReference class initialized with the targetNodeId specified and setup using the referenceType passed in a unidirectional manner.

Exceptions

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

ToParent(OpcNodeId, OpcNodeId) ​

static · since v2.7

Provides a unidirectional reference using the targetNodeId as the identifier of target of the reference. The reference created represents a ChildToParent relation using the type of reference identified by the referenceTypeId specified.

csharp
public static OpcReference ToParent(
    OpcNodeId targetNodeId,
    OpcNodeId referenceTypeId)
vbnet
Public Shared Function ToParent(
    targetNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId) As OpcReference

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

OpcReference

A new instance of the OpcReference class initialized with the targetNodeId specified and setup using the referenceTypeId passed in a unidirectional manner.

Exceptions

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

ToString ​

override · since v2.7

Returns a string representing the information contained in the OpcNodeReference.

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

Returns

String

A string which describes the information in this OpcNodeReference.

Overrides

ToString()