Skip to content

Reference

OpcClient.TranslatePath Method

Translates a path starting from the root node using the pathElements specified.

Reference

OpcClient.TranslatePath Method ​

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

12 overloads · since v2.18

OverloadDescription
TranslatePath(params OpcName[])since v2.18Translates a path starting from the root node using the pathElements specified.
TranslatePath(IEnumerable<OpcName>)since v2.18Translates a path starting from the root node using the pathElements specified.
TranslatePath(OpcNodeId, params OpcName[])since v2.18Translates a path starting from the node identified by the nodeId specified using the pathElements passed.
TranslatePath(OpcNodeId, IEnumerable<OpcName>)since v2.18Translates a path starting from the node identified by the nodeId specified using the pathElements passed.
TranslatePath(params OpcRelativePathElement[])since v2.18Translates a path starting from the root node using the pathElements specified.
TranslatePath(IEnumerable<OpcRelativePathElement>)since v2.18Translates a path starting from the root node using the pathElements specified.
TranslatePath(OpcNodeId, params OpcRelativePathElement[])since v2.18Translates a path starting from the node identified by the nodeId specified using the pathElements passed.
TranslatePath(OpcNodeId, IEnumerable<OpcRelativePathElement>)since v2.18Translates a path starting from the node identified by the nodeId specified using the pathElements passed.
TranslatePath(string)since v2.18Translates the path starting from the root node.
TranslatePath(OpcNodeId, string)since v2.18Translates the path starting from the node identified by the nodeId specified.
TranslatePath(OpcNodeId, OpcRelativePath)since v2.18Translates the path starting from the node identified by the nodeId specified.
TranslatePath(OpcTranslatePath)since v2.18Translates a path starting from a dedicated node using the command specified.

Exceptions (all overloads)

ExceptionCondition
ObjectDisposedExceptionThe object has been disposed of.
OpcExceptionThe service execution failed upon different circumstances; for more details see exception details. The following issues can lead to that exception: BadNothingToDo and BadTooManyOperations.

TranslatePath(params OpcName[]) ​

since v2.18

Translates a path starting from the root node using the pathElements specified.

csharp
public OpcNodeId TranslatePath(params OpcName[] pathElements)
vbnet
Public Function TranslatePath(ParamArray pathElements As OpcName()) As OpcNodeId

Parameters

NameTypeDescription
pathElementsparams OpcName[]An array of OpcName objects representing the value of the BrowseName attribute of the nodes to visit to translate the last OpcName item in pathElements to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the pathElements were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe pathElements or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the pathElements specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(IEnumerable<OpcName>) ​

since v2.18

Translates a path starting from the root node using the pathElements specified.

csharp
public OpcNodeId TranslatePath(IEnumerable<OpcName> pathElements)
vbnet
Public Function TranslatePath(
    pathElements As IEnumerable(Of OpcName)) As OpcNodeId

Parameters

NameTypeDescription
pathElementsIEnumerable<OpcName>A sequence of OpcName objects representing the value of the BrowseName attribute of the nodes to visit to translate the last OpcName item in pathElements to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the pathElements were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe pathElements or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the pathElements specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(OpcNodeId, params OpcName[]) ​

since v2.18

Translates a path starting from the node identified by the nodeId specified using the pathElements passed.

csharp
public OpcNodeId TranslatePath(OpcNodeId nodeId, params OpcName[] pathElements)
vbnet
Public Function TranslatePath(
    nodeId As OpcNodeId,
    ParamArray pathElements As OpcName()) As OpcNodeId

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service will translate the pathElements.
pathElementsparams OpcName[]An array of OpcName objects representing the value of the BrowseName attribute of the nodes to visit to translate the last OpcName item in pathElements to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the pathElements were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe pathElements or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the pathElements specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(OpcNodeId, IEnumerable<OpcName>) ​

since v2.18

Translates a path starting from the node identified by the nodeId specified using the pathElements passed.

csharp
public OpcNodeId TranslatePath(
    OpcNodeId nodeId,
    IEnumerable<OpcName> pathElements)
vbnet
Public Function TranslatePath(
    nodeId As OpcNodeId,
    pathElements As IEnumerable(Of OpcName)) As OpcNodeId

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service will translate the pathElements.
pathElementsIEnumerable<OpcName>A sequence of OpcName objects representing the value of the BrowseName attribute of the nodes to visit to translate the last OpcName item in pathElements to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the pathElements were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe pathElements or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the pathElements specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(params OpcRelativePathElement[]) ​

since v2.18

Translates a path starting from the root node using the pathElements specified.

csharp
public OpcNodeId TranslatePath(params OpcRelativePathElement[] pathElements)
vbnet
Public Function TranslatePath(
    ParamArray pathElements As OpcRelativePathElement()) As OpcNodeId

Parameters

NameTypeDescription
pathElementsparams OpcRelativePathElement[]An array of OpcRelativePathElement objects representing the translation directives of the nodes to visit to translate the last OpcRelativePathElement item in pathElements to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the pathElements were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe pathElements or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the pathElements specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(IEnumerable<OpcRelativePathElement>) ​

since v2.18

Translates a path starting from the root node using the pathElements specified.

csharp
public OpcNodeId TranslatePath(IEnumerable<OpcRelativePathElement> pathElements)
vbnet
Public Function TranslatePath(
    pathElements As IEnumerable(Of OpcRelativePathElement)) As OpcNodeId

Parameters

NameTypeDescription
pathElementsIEnumerable<OpcRelativePathElement>A sequence of OpcRelativePathElement objects representing the translation directives of the nodes to visit to translate the last OpcRelativePathElement item in pathElements to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the pathElements were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe pathElements or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the pathElements specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(OpcNodeId, params OpcRelativePathElement[]) ​

since v2.18

Translates a path starting from the node identified by the nodeId specified using the pathElements passed.

csharp
public OpcNodeId TranslatePath(
    OpcNodeId nodeId,
    params OpcRelativePathElement[] pathElements)
vbnet
Public Function TranslatePath(
    nodeId As OpcNodeId,
    ParamArray pathElements As OpcRelativePathElement()) As OpcNodeId

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service will translate the pathElements.
pathElementsparams OpcRelativePathElement[]An array of OpcRelativePathElement objects representing the translation directives of the nodes to visit to translate the last OpcRelativePathElement item in pathElements to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the pathElements were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe pathElements or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the pathElements specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(OpcNodeId, IEnumerable<OpcRelativePathElement>) ​

since v2.18

Translates a path starting from the node identified by the nodeId specified using the pathElements passed.

csharp
public OpcNodeId TranslatePath(
    OpcNodeId nodeId,
    IEnumerable<OpcRelativePathElement> pathElements)
vbnet
Public Function TranslatePath(
    nodeId As OpcNodeId,
    pathElements As IEnumerable(Of OpcRelativePathElement)) As OpcNodeId

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service will translate the pathElements.
pathElementsIEnumerable<OpcRelativePathElement>A sequence of OpcRelativePathElement objects representing the translation directives of the nodes to visit to translate the last OpcRelativePathElement item in pathElements to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the pathElements were translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe pathElements or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the pathElements specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(string) ​

since v2.18

Translates the path starting from the root node.

csharp
public OpcNodeId TranslatePath(string path)
vbnet
Public Function TranslatePath(path As String) As OpcNodeId

Parameters

NameTypeDescription
pathStringA string representing a OpcRelativePath to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the path was translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe path is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the path specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(OpcNodeId, string) ​

since v2.18

Translates the path starting from the node identified by the nodeId specified.

csharp
public OpcNodeId TranslatePath(OpcNodeId nodeId, string path)
vbnet
Public Function TranslatePath(nodeId As OpcNodeId, path As String) As OpcNodeId

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service will translate the path.
pathStringA string representing a OpcRelativePath to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the path was translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe path is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the path specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(OpcNodeId, OpcRelativePath) ​

since v2.18

Translates the path starting from the node identified by the nodeId specified.

csharp
public OpcNodeId TranslatePath(OpcNodeId nodeId, OpcRelativePath path)
vbnet
Public Function TranslatePath(
    nodeId As OpcNodeId,
    path As OpcRelativePath) As OpcNodeId

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service will translate the path.
pathOpcRelativePathThe OpcRelativePath to the OpcNodeId requested by the service.

Returns

OpcNodeId

The target identifier the path was translated to or a null reference (Nothing in Visual Basic) if the path could not translated.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe path is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the path specified.

Remarks

Known results for this method are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.

TranslatePath(OpcTranslatePath) ​

since v2.18

Translates a path starting from a dedicated node using the command specified.

csharp
public OpcTranslatePathResult TranslatePath(OpcTranslatePath command)
vbnet
Public Function TranslatePath(
    command As OpcTranslatePath) As OpcTranslatePathResult

Parameters

NameTypeDescription
commandOpcTranslatePathThe OpcTranslatePath instance to process.

Returns

OpcTranslatePathResult

An instance of the OpcTranslatePathResult class which contains the target identifier the path has been translated to through the command specified; together with information about the outcome of the processed command.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the command specified.

Remarks

Known results for the command specified are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadNothingToDoThis code indicates that the relativePath contained an empty list.
BadBrowseNameInvalidThis code indicates that a TargetName was missing in a RelativePath.
UncertainReferenceOutOfServerThe path element has targets which are in another server.
BadTooManyMatchesThe requested operation has too many matches to return. Users should use queries for large result sets. Servers should allow at least 10 matches before returning this error code.
BadQueryTooComplexThe requested operation requires too many resources in the server.
BadNoMatchThe requested relativePath cannot be resolved to a target to return.