Reference
OpcInstanceNode Members
Defines the abstract base class of all instance nodes.
Reference
OpcInstanceNode Members
- Type
- OpcInstanceNode
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Inherits members from OpcNode.
Properties
DefaultReferenceTypeId
Gets the default identifier which identifies the type that defines the underlying node reference within this OpcInstanceNode is referenced by its parent node.
protected virtual OpcNodeId DefaultReferenceTypeId { get; }Protected Overridable ReadOnly Property DefaultReferenceTypeId As OpcNodeIdProperty value
The OpcNodeId of the reference wihin this OpcInstanceNode is referenced. These reference defines the typical behaviour of an instance node and its role in the address space regarding its parent. If there exists no specific reference type a null reference (Nothing in Visual Basic).
DefaultTypeDefinitionId
Gets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.
protected virtual OpcNodeId DefaultTypeDefinitionId { get; }Protected Overridable ReadOnly Property DefaultTypeDefinitionId As OpcNodeIdProperty value
The OpcNodeId of the type node from that this OpcInstanceNode has been created from. These type node defines the typical structure of an instance node of its type definition. If there exists no specific type definition node a null reference (Nothing in Visual Basic).
InheritReferenceTypeId
Gets a value indicating whether the DefaultReferenceTypeId of the current node is to be used for its children nodes initial ReferenceTypeId. This applies only under the conditions where ReferenceTypeId of the child node is a null reference (Nothing in Visual Basic) or the DefaultReferenceTypeId of the child node is used.
protected virtual bool InheritReferenceTypeId { get; }Protected Overridable ReadOnly Property InheritReferenceTypeId As BooleanProperty value
The value true to inherit the DefaultReferenceTypeId to the direct children nodes of the parent node; otherwise the value false. The default value is false.
ModellingRuleId
Gets or sets the identifier which defines how the OpcInstanceNode is used for instantiation.
public OpcNodeId ModellingRuleId { get; set; }Public Property ModellingRuleId As OpcNodeIdProperty value
The OpcNodeId of the rule which defined how the OpcInstanceNode is used for instantiation. This rule also defines subtyping rules for the OpcInstanceNode. If there does no specific rule apply to the node a null reference (Nothing in Visual Basic).
Parent
Gets the parent node of the node.
public override sealed IOpcNode Parent { get; }Public NotOverridable Overrides ReadOnly Property Parent As IOpcNodeProperty value
An instance implementing the IOpcNode interface which represents the phyiscal parent of the node. In general a node can have multiple (logical) parent nodes, but this property provides the only physical parent node of the node. The value can also be a null reference (Nothing in Visual Basic) in case there the node does only have logical parent nodes.
Overrides
ReferenceType
Gets a value which defines a pre-defined used ReferenceTypeId as one of the members defined by the OpcReferenceType enumeration to simplify querying standard reference types.
public OpcReferenceType ReferenceType { get; }Public ReadOnly Property ReferenceType As OpcReferenceTypeProperty value
One of the members defined by the OpcReferenceType enumeration.
ReferenceTypeId
Gets or sets the identifier which identifies the node that defines the semantic of the reference between a source and a target node and generally reflects an operation between the two, such as "A contains B".
public OpcNodeId ReferenceTypeId { get; set; }Public Property ReferenceTypeId As OpcNodeIdProperty value
The OpcNodeId of the reference type node which defines the relation semantic between the source and a target node. If there does no specific reference apply between the source and the target node a null reference (Nothing in Visual Basic).
Remarks
Since reference types will be used as filters in the browse service and in queries, the server shall provide all its reference types, directly or indirectly following hierarchical references starting from the "ReferenceTypes" object. This means that, whenever the client follows a reference, the server shall expose the type of this reference in the reference type hierarchy. It shall provide all reference types so that the client would be able, following the inverse subtype of references, to come to the base references reference type. It does not mean that the server shall expose the reference type that the client has not used any reference of.
TypeDefinitionId
Gets or sets the identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.
public OpcNodeId TypeDefinitionId { get; set; }Public Property TypeDefinitionId As OpcNodeIdProperty value
The OpcNodeId of the type node from that this OpcInstanceNode has been created from. These type node defines the typical structure of an instance node of its type definition. If there exists no specific type definition node a null reference (Nothing in Visual Basic).
Methods
AddChild
Adds the node specified as a child node of this node.
public void AddChild(OpcContext context, OpcInstanceNode node)Public Sub AddChild(context As OpcContext, node As OpcInstanceNode)Parameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to add the child node. |
node | OpcInstanceNode | The OpcInstanceNode to add as a child node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or node is a null reference ( |
Remarks
If this node has already been initialized, the node is initialized in the Namespace of this node before it is added. If the context is an OpcNodeContext of a node manager, the node is added to the node manager too.
GetNodeValue
| Overload | Description |
|---|---|
| GetNodeValue< | Retrieves the value of the child variable node with the name specified in the Namespace of this node. |
| GetNodeValue< | Retrieves the value of the child variable node with the name specified. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | This node has no child variable node with the name. |
GetNodeValue<T>(string)
Retrieves the value of the child variable node with the name specified in the Namespace of this node.
public T GetNodeValue<T>(string name = "")Public Function GetNodeValue(Of T)(name As String = "") As TType parameters
| Name | Description |
|---|---|
T | The type of the value to retrieve. |
Parameters
| Name | Type | Description |
|---|---|---|
name | String | The name of the child variable node; by default the name of the calling member, e."". |
Returns
T
The value of the child variable node if it is a T; otherwise the default value of T.
GetNodeValue<T>(OpcName)
Retrieves the value of the child variable node with the name specified.
public T GetNodeValue<T>(OpcName name)Public Function GetNodeValue(Of T)(name As OpcName) As TType parameters
| Name | Description |
|---|---|
T | The type of the value to retrieve. |
Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName of the child variable node. |
Returns
T
The value of the child variable node if it is a T; otherwise the default value of T.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The name is a null reference ( |
InitializeDefaults
Initializes the default values used by the OpcInstanceNode.
protected override void InitializeDefaults()Protected Overrides Sub InitializeDefaults()Overrides
Remarks
This method is used to ensure the availability of appropriate node specific default values. For more information like when this method is to be overwritten see InitializeDefaults.
RemoveChild
Removes the node specified from the child nodes of this node.
public void RemoveChild(OpcContext context, OpcInstanceNode node)Public Sub RemoveChild(context As OpcContext, node As OpcInstanceNode)Parameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to remove the child node. |
node | OpcInstanceNode | The OpcInstanceNode to remove from the child nodes. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or node is a null reference ( |
Remarks
If the context is an OpcNodeContext of a node manager, the node is removed from the node manager too.
RemoveNotifier
Removes the node from the collection of notifiers (= event sources) of this node.
public override void RemoveNotifier(OpcContext context, IOpcNode node)Public Overrides Sub RemoveNotifier(context As OpcContext, node As IOpcNode)Parameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to remove the node as the notifying event source. |
node | IOpcNode | The IOpcNode instance no longer acting as the notifier. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or node is a null reference ( |
Overrides
Remarks
If the node is the last notifier being removed from the collection of notifiers the EventNotifier attribute of this OpcInstanceNode is unset from 'SubscribeToEvents'.
SetNodeValue
| Overload | Description |
|---|---|
| SetNodeValue< | Changes the value of the child variable node with the name specified in the Namespace of this node and applies the change. |
| SetNodeValue< | Changes the value of the child variable node with the name specified and applies the change. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | This node has no child variable node with the name. |
SetNodeValue<T>(string, T)
Changes the value of the child variable node with the name specified in the Namespace of this node and applies the change.
public void SetNodeValue<T>(string name = "", T value = default)Public Sub SetNodeValue(Of T)(name As String = "", value As T = Nothing)Type parameters
| Name | Description |
|---|---|
T | The type of the value to store. |
Parameters
| Name | Type | Description |
|---|---|---|
name | String | The name of the child variable node; by default the name of the calling member, e."". |
value | T | The new value of the child variable node. Optional, default default. |
SetNodeValue<T>(OpcName, T)
Changes the value of the child variable node with the name specified and applies the change.
public void SetNodeValue<T>(OpcName name, T value)Public Sub SetNodeValue(Of T)(name As OpcName, value As T)Type parameters
| Name | Description |
|---|---|
T | The type of the value to store. |
Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName of the child variable node. |
value | T | The new value of the child variable node. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The name is a null reference ( |

