Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcNodeReferenceSource type exposes the following members.
Initializes a new instance of the OpcNodeReferenceSource class using the node
specified from which the references constructed originate from.
C#
public OpcNodeReferenceSource(IOpcNode node)
Parameters
node
IOpcNode
The IOpcNode used as the source node of the references constructed.
Exceptions
The node
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcNodeReferenceSource class using the nodeId
to identify the node from which the references constructed originate from.
C#
public OpcNodeReferenceSource(OpcNodeId nodeId)
Parameters
nodeId
OpcNodeId
The OpcNodeId which identifies the source node of the references constructed.
Exceptions
The nodeId
is a null reference (Nothing in Visual Basic).
Gets the node from which the references constructed originate from.
C#
public IOpcNode Node { get; }
Property Value
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.
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.
C#
public OpcNodeReference To(IEnumerable<OpcReference> references)
Parameters
references
IEnumerable<OpcReference>
A sequence of OpcReference instances to associate with the node information refered to in this OpcNodeReferenceSource.
Returns
A new instance of the OpcNodeReference class which combines the node information of this OpcNodeReferenceSource and the references
specified.
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.
C#
public OpcNodeReferenceSet To(IOpcNode targetNode)
Parameters
targetNode
IOpcNode
The IOpcNode used as the target one reference will cease in, while the second reference uses it the other way round.
Returns
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
The targetNode
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReferenceSet To(IOpcNode targetNode, OpcNodeId referenceTypeId)
Parameters
targetNode
IOpcNode
The IOpcNode used as the target one reference will cease in, while the second reference uses it the other way round.
referenceTypeId
OpcNodeId
The OpcNodeId which identifies the type of reference to represent between the targetNode
and its opponent.
Returns
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
The targetNode
or referenceTypeId
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReferenceSet To(IOpcNode targetNode, OpcReferenceType referenceType)
Parameters
targetNode
IOpcNode
The IOpcNode used as the target one reference will cease in, while the second reference uses it the other way round.
referenceType
OpcReferenceType
One of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.
Returns
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
The targetNode
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReferenceSet To(OpcNodeId targetNodeId)
Parameters
targetNodeId
OpcNodeId
The 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
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
The targetNodeId
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReferenceSet To(OpcNodeId targetNodeId, OpcNodeId referenceTypeId)
Parameters
targetNodeId
OpcNodeId
The OpcNodeId which identifies the node used as the target one reference will cease in, while the second reference uses it the other way round.
referenceTypeId
OpcNodeId
The OpcNodeId which identifies the type of reference to represent between the target identified by the targetNodeId
and its opponent.
Returns
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
The targetNodeId
or referenceTypeId
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReferenceSet To(OpcNodeId targetNodeId, OpcReferenceType referenceType)
Parameters
targetNodeId
OpcNodeId
The OpcNodeId which identifies the node used as the target one reference will cease in, while the second reference uses it the other way round.
referenceType
OpcReferenceType
One of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.
Returns
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
The targetNodeId
or referenceType
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference To(params OpcReference[] references)
Parameters
references
OpcReference[]
An array of OpcReference instances to associate with the node information refered to in this OpcNodeReferenceSource.
Returns
A new instance of the OpcNodeReference class which combines the node information of this OpcNodeReferenceSource and the references
specified.
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.
C#
public OpcNodeReference ToChild(IOpcNode targetNode)
Parameters
targetNode
IOpcNode
The IOpcNode in which the reference constructed ceases.
Returns
A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode
specified.
Exceptions
The targetNode
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToChild(IOpcNode targetNode, OpcNodeId referenceTypeId)
Parameters
targetNode
IOpcNode
The IOpcNode in which the reference constructed ceases.
referenceTypeId
OpcNodeId
The OpcNodeId which identifies the type of reference to represent between the targetNode
and its opponent.
Returns
A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode
specified.
Exceptions
The targetNode
or referenceTypeId
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToChild(IOpcNode targetNode, OpcReferenceType referenceType)
Parameters
targetNode
IOpcNode
The IOpcNode in which the reference constructed ceases.
referenceType
OpcReferenceType
One of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.
Returns
A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode
specified.
Exceptions
The targetNode
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToChild(OpcNodeId targetNodeId)
Parameters
targetNodeId
OpcNodeId
The OpcNodeId which identifies the node in which the reference constructed ceases.
Returns
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
The targetNodeId
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToChild(OpcNodeId targetNodeId, OpcNodeId referenceTypeId)
Parameters
targetNodeId
OpcNodeId
The OpcNodeId which identifies the node in which the reference constructed ceases.
referenceTypeId
OpcNodeId
The OpcNodeId which identifies the type of reference to represent between the target identified by the targetNodeId
and its opponent.
Returns
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
The targetNodeId
or referenceTypeId
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToChild(OpcNodeId targetNodeId, OpcReferenceType referenceType)
Parameters
targetNodeId
OpcNodeId
The OpcNodeId which identifies the node in which the reference constructed ceases.
referenceType
OpcReferenceType
One of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.
Returns
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
The targetNodeId
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToParent(IOpcNode targetNode)
Parameters
targetNode
IOpcNode
The IOpcNode in which the reference constructed ceases.
Returns
A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode
specified.
Exceptions
The targetNode
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToParent(IOpcNode targetNode, OpcNodeId referenceTypeId)
Parameters
targetNode
IOpcNode
The IOpcNode in which the reference constructed ceases.
referenceTypeId
OpcNodeId
The OpcNodeId which identifies the type of reference to represent between the targetNode
and its opponent.
Returns
A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode
specified.
Exceptions
The targetNode
or referenceTypeId
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToParent(IOpcNode targetNode, OpcReferenceType referenceType)
Parameters
targetNode
IOpcNode
The IOpcNode in which the reference constructed ceases.
referenceType
OpcReferenceType
One of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.
Returns
A new instance of the OpcNodeReference class which represents a unidirectional relation between the node referenced by this OpcNodeReferenceSource and the targetNode
specified.
Exceptions
The targetNode
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToParent(OpcNodeId targetNodeId)
Parameters
targetNodeId
OpcNodeId
The OpcNodeId which identifies the node in which the reference constructed ceases.
Returns
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
The targetNodeId
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToParent(OpcNodeId targetNodeId, OpcNodeId referenceTypeId)
Parameters
targetNodeId
OpcNodeId
The OpcNodeId which identifies the node in which the reference constructed ceases.
referenceTypeId
OpcNodeId
The OpcNodeId which identifies the type of reference to represent between the target identified by the targetNodeId
and its opponent.
Returns
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
The targetNodeId
or referenceTypeId
is a null reference (Nothing in Visual Basic).
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.
C#
public OpcNodeReference ToParent(OpcNodeId targetNodeId, OpcReferenceType referenceType)
Parameters
targetNodeId
OpcNodeId
The OpcNodeId which identifies the node in which the reference constructed ceases.
referenceType
OpcReferenceType
One of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented.
Returns
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
The targetNodeId
is a null reference (Nothing in Visual Basic).
Returns a string representing the information contained in the OpcNodeReferenceSource.
C#
public override string ToString()
Returns
A string which describes the information in this OpcNodeReferenceSource.