OpcReference Class

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll

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.

C#

public class OpcReference : IOpcNodeReferenceAware


Inheritance Object › OpcReference


Implements IOpcNodeReferenceAware

Name Description
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.
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.
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.
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.
Name Description
Direction Gets a value indicating the logical direction of the reference represented.
TargetNode Gets the node to which the reference refers to.
TargetNodeId Gets the identifier of the node to which the reference refers to.
Type Gets a value which defines the pre-defined type of reference represented.
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”.
Name Description
GetReferences Retrieves an empty sequence of OpcNodeReference instances.
GetReferences(IOpcNode) Retrieves a sequence with one OpcNodeReference instance using the node specified as the source of the reference.
GetReferences(OpcNodeId) Retrieves a sequence with one OpcNodeReference instance using the nodeId specified as the source of the reference.
ToString Returns a string representing the information contained in the OpcReference.