OpcNominalNodeIdFactory Members

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcNominalNodeIdFactory type exposes the following members.

OpcNominalNodeIdFactory()

Initializes a new instance of the OpcNominalNodeIdFactory class.

C#

public OpcNominalNodeIdFactory()

Separator

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

C#

public char Separator { get; set; }


Property Value

Char

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

Create(OpcContext)

Creates a new OpcNodeId just using the context specified.

C#

public override OpcNodeId Create(OpcContext context)


Parameters

context OpcContext

The 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.

Create(OpcContext, OpcNamespace)

Creates a new OpcNodeId using the context and nodeNamespace specified.

C#

public override OpcNodeId Create(OpcContext context, OpcNamespace nodeNamespace)


Parameters

context OpcContext

The OpcContext to use to generate the new OpcNodeId.

nodeNamespace OpcNamespace

The 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.

Create(OpcContext, OpcNamespace, IOpcNodeInfo)

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

C#

public override OpcNodeId Create(OpcContext context, OpcNamespace nodeNamespace, IOpcNodeInfo node)


Parameters

context OpcContext

The OpcContext to use to generate the new OpcNodeId.

nodeNamespace OpcNamespace

The OpcNamespace to that the new OpcNodeId have to refer to. If a null reference (Nothing in Visual Basic) is specified Default is used.

node IOpcNodeInfo

An 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.


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)

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

C#

protected virtual OpcNodeId Create(OpcContext context, OpcNamespace nodeNamespace, IOpcNodeInfo node, OpcName nodeName)


Parameters

context OpcContext

The OpcContext to use to generate the new OpcNodeId.

nodeNamespace OpcNamespace

The OpcNamespace to that the new OpcNodeId have to refer to. If a null reference (Nothing in Visual Basic) is specified Default is used.

node IOpcNodeInfo

An instance implementing the IOpcNodeInfo interface which represents a preview of the node for which the new node identifier is used.

nodeName OpcName

The 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.