Reference
OpcReference Members
Describes a unidirectional reference from a logical 'parent' to a logical 'child' or vice versa using a specific type of reference between the two opponents.
Reference
OpcReference Members
- Type
- OpcReference
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Constructors
OpcReference
| Overload | Description |
|---|---|
| OpcReference( | Initializes a new instance of the OpctargetNode as the target of the reference and using the value of the type parameter as the type of reference in the relation defined by direction. |
| OpcReference( | Initializes a new instance of the OpcReference class using the targetNode as the target using the type of reference identified by the typeId specified in the relation defined by direction. |
| OpcReference( | Initializes a new instance of the OpctargetNodeId as the identifier of the target of the reference using the value of the type parameter as the type of the reference in the relation defined by direction. |
| OpcReference( | Initializes a new instance of the OpctargetNodeId as the identifier of the target and using the type of reference identified by the typeId specified in the relation defined by direction. |
OpcReference(IOpcNode, OpcReferenceDirection, OpcReferenceType)
Initializes a new instance of the OpcBidirectionalReference class using the targetNode as the target of the reference and using the value of the type parameter as the type of reference in the relation defined by direction.
public OpcReference(
IOpcNode targetNode,
OpcReferenceDirection direction,
OpcReferenceType type)Public Sub New(
targetNode As IOpcNode,
direction As OpcReferenceDirection,
type As OpcReferenceType)Parameters
| Name | Type | Description |
|---|---|---|
targetNode | IOpcNode | The IOpcNodeInfo in which the reference constructed ceases. |
direction | Opc | One of the members defined by the Opc |
type | OpcReferenceType | One of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The targetNode is a null reference ( |
OpcReference(IOpcNode, OpcReferenceDirection, OpcNodeId)
Initializes a new instance of the OpcReference class using the targetNode as the target using the type of reference identified by the typeId specified in the relation defined by direction.
public OpcReference(
IOpcNode targetNode,
OpcReferenceDirection direction,
OpcNodeId typeId)Public Sub New(
targetNode As IOpcNode,
direction As OpcReferenceDirection,
typeId As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
targetNode | IOpcNode | The IOpcNodeInfo in which the reference constructed ceases. |
direction | Opc | One of the members defined by the Opc |
typeId | OpcNodeId | The OpcNodeId which identifies the type of reference to represent between the targetNode and its opponent. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The targetNode or typeId is a null reference ( |
OpcReference(OpcNodeId, OpcReferenceDirection, OpcReferenceType)
Initializes a new instance of the OpcBidirectionalReference class using the targetNodeId as the identifier of the target of the reference using the value of the type parameter as the type of the reference in the relation defined by direction.
public OpcReference(
OpcNodeId targetNodeId,
OpcReferenceDirection direction,
OpcReferenceType type)Public Sub New(
targetNodeId As OpcNodeId,
direction As OpcReferenceDirection,
type As OpcReferenceType)Parameters
| Name | Type | Description |
|---|---|---|
targetNodeId | OpcNodeId | The OpcNodeId which identifies the node in which the reference constructed ceases. |
direction | Opc | One of the members defined by the Opc |
type | OpcReferenceType | One of the members defined by the OpcReferenceType enumeration to use to setup the type of reference represented. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The targetNodeId is a null reference ( |
OpcReference(OpcNodeId, OpcReferenceDirection, OpcNodeId)
Initializes a new instance of the OpcBidirectionalReference class using the targetNodeId as the identifier of the target and using the type of reference identified by the typeId specified in the relation defined by direction.
public OpcReference(
OpcNodeId targetNodeId,
OpcReferenceDirection direction,
OpcNodeId typeId)Public Sub New(
targetNodeId As OpcNodeId,
direction As OpcReferenceDirection,
typeId As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
targetNodeId | OpcNodeId | The OpcNodeId which identifies the node in which the reference constructed ceases. |
direction | Opc | One of the members defined by the Opc |
typeId | OpcNodeId | The OpcNodeId which identifies the type of reference to represent between the target identified by the targetNodeId and its opponent. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The targetNodeId or typeId is a null reference ( |
Properties
Direction
Gets a value indicating the logical direction of the reference represented.
public OpcReferenceDirection Direction { get; }Public ReadOnly Property Direction As OpcReferenceDirectionProperty value
One of the members defined by the OpcReferenceDirection enumeration. The default value is ParentToChild.
TargetNode
Gets the node to which the reference refers to.
public IOpcNode TargetNode { get; }Public ReadOnly Property TargetNode As IOpcNodeProperty value
The IOpcNode to which the reference refers to or a null refernce (Nothing in Visual Basic) in case there this OpcReference has been initialized using a OpcNodeId which identifies the node the reference refers to.
TargetNodeId
Gets the identifier of the node to which the reference refers to.
public OpcNodeId TargetNodeId { get; }Public ReadOnly Property TargetNodeId As OpcNodeIdProperty value
The OpcNodeId which identifies the node to which the reference refers to.
Type
Gets a value which defines the pre-defined type of reference represented.
public OpcReferenceType? Type { get; }Public ReadOnly Property Type As OpcReferenceType?Property value
One of the members defined by the OpcReferenceType enumeration or a null reference (Nothing in Visual Basic) if TypeId refers to a type of reference which is not a built in reference type. The default value is Organizes.
TypeId
Gets the identifier which identifies the node that defines the semantic of the reference between the source and the target node represented through this OpcReference and generally reflects an operation between the two, such as "A contains B".
public OpcNodeId TypeId { get; }Public ReadOnly Property TypeId As OpcNodeIdProperty value
The OpcNodeId of the reference type node which defines the relation semantic between the source and the target node. The default value is Organizes.
Methods
GetReferences
| Overload | Description |
|---|---|
| GetReferences() | Retrieves an empty sequence of OpcNodeReference instances. |
| GetReferences( | Retrieves a sequence with one OpcNodeReference instance using the node specified as the source of the reference. |
| GetReferences( | Retrieves a sequence with one OpcNodeReference instance using the nodeId specified as the source of the reference. |
GetReferences()
Retrieves an empty sequence of OpcNodeReference instances.
public IEnumerable<OpcNodeReference> GetReferences()Public Function GetReferences() As IEnumerable(Of OpcNodeReference)Returns
An empty IEnumerable<T> of OpcNodeReference instances.
Implements
GetReferences(IOpcNode)
Retrieves a sequence with one OpcNodeReference instance using the node specified as the source of the reference.
public IEnumerable<OpcNodeReference> GetReferences(IOpcNode node)Public Function GetReferences(
node As IOpcNode) As IEnumerable(Of OpcNodeReference)Parameters
| Name | Type | Description |
|---|---|---|
node | IOpcNode | The IOpcNode instance from which the OpcNodeReference instance originates from. |
Returns
An IEnumerable<T> of OpcNodeReference instances which contains only one instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The node is a null reference ( |
Implements
GetReferences(OpcNodeId)
Retrieves a sequence with one OpcNodeReference instance using the nodeId specified as the source of the reference.
public IEnumerable<OpcNodeReference> GetReferences(OpcNodeId nodeId)Public Function GetReferences(
nodeId As OpcNodeId) As IEnumerable(Of OpcNodeReference)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId which identifies the node from which the OpcNodeReference instance originates from. |
Returns
An IEnumerable<T> of OpcNodeReference instances which contains only one instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The nodeId is a null reference ( |
Implements
ToString
Returns a string representing the information contained in the OpcReference.
public override string ToString()Public Overrides Function ToString() As StringReturns
A string which describes the information in this OpcReference.
Overrides

