Skip to content

Reference

OpcAddressSpace Members

Represents the address space which the callback of an OpcServer (e.g. OpcServer) receives to create the nodes of the server.

Reference

OpcAddressSpace Members ​

Type
OpcAddressSpace
Namespace
Opc.UaFx.Server
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Properties ​

DefaultNamespace ​

Gets the default namespace of the Manager.

csharp
public OpcNamespace DefaultNamespace { get; }
vbnet
Public ReadOnly Property DefaultNamespace As OpcNamespace

Property value

OpcNamespace

The DefaultNamespace of the Manager.

DefaultNamespaceIndex ​

Gets the index of the default namespace of the Manager.

csharp
public int DefaultNamespaceIndex { get; }
vbnet
Public ReadOnly Property DefaultNamespaceIndex As Integer

Property value

Int32

The DefaultNamespaceIndex of the Manager.

DefaultNamespaceUri ​

Gets the URI of the default namespace of the Manager.

csharp
public Uri DefaultNamespaceUri { get; }
vbnet
Public ReadOnly Property DefaultNamespaceUri As Uri

Property value

Uri

The DefaultNamespaceUri of the Manager.

Manager ​

Gets the node manager which creates the nodes of the address space.

csharp
public OpcNodeManager Manager { get; }
vbnet
Public ReadOnly Property Manager As OpcNodeManager

Property value

OpcNodeManager

The OpcNodeManager which adds the Nodes to the server.

Namespaces ​

since v2.8

Gets the namespaces maintained by the Manager.

csharp
public OpcReadOnlyNamespaceCollection Namespaces { get; }
vbnet
Public ReadOnly Property Namespaces As OpcReadOnlyNamespaceCollection

Property value

OpcReadOnlyNamespaceCollection

The Namespaces of the Manager.

Nodes ​

Gets the nodes to add to the address space.

csharp
public OpcNodeCollection Nodes { get; }
vbnet
Public ReadOnly Property Nodes As OpcNodeCollection

Property value

OpcNodeCollection

An OpcNodeCollection which initially contains the Nodes of the Manager.

References ​

Gets the references of the nodes to their parent nodes.

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

Property value

OpcNodeReferenceCollection

The OpcNodeReferenceCollection which the server uses to link the Nodes into its address space.

Methods ​

AddNode ​

2 overloads

OverloadDescription
AddNode(IOpcNode)Adds the node specified to the address space below the 'Objects' folder (see ObjectsFolder).
AddNode(IOpcNode, OpcNodeId)Adds the node specified to the address space below the parent node with the parentNodeId specified.

AddNode(IOpcNode) ​

Adds the node specified to the address space below the 'Objects' folder (see ObjectsFolder).

csharp
public void AddNode(IOpcNode node)
vbnet
Public Sub AddNode(node As IOpcNode)

Parameters

NameTypeDescription
nodeIOpcNodeThe IOpcNode to add.

Exceptions

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

Remarks

A node which is already part of the Nodes is not added again.

AddNode(IOpcNode, OpcNodeId) ​

Adds the node specified to the address space below the parent node with the parentNodeId specified.

csharp
public void AddNode(IOpcNode node, OpcNodeId parentNodeId)
vbnet
Public Sub AddNode(node As IOpcNode, parentNodeId As OpcNodeId)

Parameters

NameTypeDescription
nodeIOpcNodeThe IOpcNode to add.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node.

Exceptions

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

Remarks

A node which is already part of the Nodes is not added again. A type node is added without a reference to the parent node. If AssignDefaultNamespaceOfManager is true, a node without namespace information is linked to the DefaultNamespace.

RemoveNode ​

Removes the node specified and its reference to the parent node from the address space.

csharp
public void RemoveNode(IOpcNode node)
vbnet
Public Sub RemoveNode(node As IOpcNode)

Parameters

NameTypeDescription
nodeIOpcNodeThe IOpcNode to remove.

Exceptions

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