Skip to content

Reference

OpcNominalNodeIdFactory Members

Provides a generic factory for OpcNodeId instances which generates general unique node identifiers using Create / Create or node dependent unique node identifiers using Create.

Reference

OpcNominalNodeIdFactory Members ​

Type
OpcNominalNodeIdFactory
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Constructors ​

OpcNominalNodeIdFactory ​

Initializes a new instance of the OpcNominalNodeIdFactory class.

csharp
public OpcNominalNodeIdFactory()
vbnet
Public Sub New()

Properties ​

Separator ​

Gets or sets the separator used to separate parent-child related node identifiers from each other.

csharp
public char Separator { get; set; }
vbnet
Public Property Separator As Char

Property value

Char

The character used to separate node identifiers from each other. The default value of this property is DefaultSeparator.

Methods ​

Create ​

4 overloads

OverloadDescription
Create(OpcContext)overrideCreates a new OpcNodeId just using the context specified.
Create(OpcContext, OpcNamespace)overrideCreates a new OpcNodeId using the context and nodeNamespace specified.
Create(OpcContext, OpcNamespace, IOpcNodeInfo)overrideCreates a new OpcNodeId using the context and the node for that the node identifier is used.
Create(OpcContext, OpcNamespace, IOpcNodeInfo, OpcName)protected · virtual · since v2.16Creates a new OpcNodeId using the context, node and nodeName specified.

Create(OpcContext) ​

override

Creates a new OpcNodeId just using the context specified.

csharp
public override OpcNodeId Create(OpcContext context)
vbnet
Public Overrides Function Create(context As OpcContext) As OpcNodeId

Parameters

NameTypeDescription
contextOpcContextThe OpcContext to use to generate the new OpcNodeId.

Returns

OpcNodeId

A new instance of the OpcNodeId class which defines an unique Guid node identifier within the Default namespace.

Overrides

Create

Create(OpcContext, OpcNamespace) ​

override

Creates a new OpcNodeId using the context and nodeNamespace specified.

csharp
public override OpcNodeId Create(OpcContext context, OpcNamespace nodeNamespace)
vbnet
Public Overrides Function Create(
    context As OpcContext,
    nodeNamespace As OpcNamespace) As OpcNodeId

Parameters

NameTypeDescription
contextOpcContextThe OpcContext to use to generate the new OpcNodeId.
nodeNamespaceOpcNamespaceThe OpcNamespace to that the new OpcNodeId have to refer to. If a null reference (Nothing in Visual Basic) is specified Default is used.

Returns

OpcNodeId

A new instance of the OpcNodeId class which defines an unique Guid node identifier within the nodeNamespace specified.

Overrides

Create

Create(OpcContext, OpcNamespace, IOpcNodeInfo) ​

override

Creates a new OpcNodeId using the context and the node for that the node identifier is used.

csharp
public override OpcNodeId Create(
    OpcContext context,
    OpcNamespace nodeNamespace,
    IOpcNodeInfo node)
vbnet
Public Overrides Function Create(
    context As OpcContext,
    nodeNamespace As OpcNamespace,
    node As IOpcNodeInfo) As OpcNodeId

Parameters

NameTypeDescription
contextOpcContextThe OpcContext to use to generate the new OpcNodeId.
nodeNamespaceOpcNamespaceThe OpcNamespace to that the new OpcNodeId have to refer to. If a null reference (Nothing in Visual Basic) is specified Default is used.
nodeIOpcNodeInfoAn instance implementing the IOpcNodeInfo interface which represents a preview of the node for which the new node identifier is used.

Returns

OpcNodeId

A new instance of the OpcNodeId class either using only the Name or additionally the Parent of the node specified. In the last case the parent-child related node identifier is constructed using the Id of the parent thereby the child and parent parts are separated by the Separator. In case there node defines is a null reference (Nothing in Visual Basic) a null reference (Nothing in Visual Basic) is returned. In case there Name of node is a null reference (Nothing in Visual Basic) or it is a null-name (see IsNull) the original node identifier is returned.

Overrides

Create

Remarks

Only in case there the nodeNamespace differs from the namespace used by the Name of the node specified and if it is not a default namespace (see IsDefault), then the nodeNamespace specified is used; otherwise the namespace used by the Name.

Create(OpcContext, OpcNamespace, IOpcNodeInfo, OpcName) ​

protected · virtual · since v2.16

Creates a new OpcNodeId using the context, node and nodeName specified.

csharp
protected virtual OpcNodeId Create(
    OpcContext context,
    OpcNamespace nodeNamespace,
    IOpcNodeInfo node,
    OpcName nodeName)
vbnet
Protected Overridable Function Create(
    context As OpcContext,
    nodeNamespace As OpcNamespace,
    node As IOpcNodeInfo,
    nodeName As OpcName) As OpcNodeId

Parameters

NameTypeDescription
contextOpcContextThe OpcContext to use to generate the new OpcNodeId.
nodeNamespaceOpcNamespaceThe OpcNamespace to that the new OpcNodeId have to refer to. If a null reference (Nothing in Visual Basic) is specified Default is used.
nodeIOpcNodeInfoAn instance implementing the IOpcNodeInfo interface which represents a preview of the node for which the new node identifier is used.
nodeNameOpcNameThe alternative OpcName to use instead of the Name of the supplied node or a null reference (Nothing in Visual Basic) to use the Name.

Returns

OpcNodeId

A new instance of the OpcNodeId class either using only the nodeName or Name or additionally the Parent of the node specified. In the last case the parent-child related node identifier is constructed using the Id of the parent thereby the child and parent parts are separated by the Separator. In case there node defined is a null reference (Nothing in Visual Basic) a null reference (Nothing in Visual Basic) is returned. In case there nodeName or Name of node is a null reference (Nothing in Visual Basic) or it is a null-name (see IsNull) the original node identifier is returned.

Remarks

Only in case there the nodeNamespace differs from the namespace used by the nodeName or Name of the node specified and if it is not a default namespace (see IsDefault), then the nodeNamespace specified is used; otherwise the namespace used by the nodeName or Name.