Skip to content

Reference

IOpcTranslatePathsService Members

Defines a specialized IOpcService<TResponse, TRequest> which can be used to translate one or more paths (see OpcRelativePath) to one or more node identifiers.

Reference

IOpcTranslatePathsService Members ​

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

Inherits members from IOpcService<OpcTranslatePathsResponse, OpcTranslatePathsRequest>.

Properties ​

MaxPathsPerTranslate ​

Gets or sets the maximum number of paths which shall be translated using a single translate request. This number indirectly defines the number of requests used to send a specific number of translate requests to the server.

csharp
uint? MaxPathsPerTranslate { get; set; }
vbnet
Property MaxPathsPerTranslate As UInteger?

Property value

Nullable<UInt32>

The absolute number of translate commands which shall be send to the server per request or a null reference (Nothing in Visual Basic). In case there a specific number of nodes is used, a request with more commands as the MaxPathsPerTranslate is partitioned into multiple requests and the responses of them are accumulated. The default value of this property is a null reference (Nothing in Visual Basic) and means that all commands defined are send to the server using the server defined number of paths per translate request.

UsedMaxPathsPerTranslate ​

Gets the maximum number of paths which are translated using a single translate request. This property will use either the MaxPathsPerTranslate or the maximum number of paths which can be translated in one request as defined by the server. The lowest number of paths is used to partition the commands to execute into multiple translate requests.

csharp
uint? UsedMaxPathsPerTranslate { get; }
vbnet
ReadOnly Property UsedMaxPathsPerTranslate As UInteger?

Property value

Nullable<UInt32>

In case there has already been one translate attempt (with more than one translate command) the definite number of commands per translate request; otherwise a null reference (Nothing in Visual Basic).

Methods ​

TranslatePaths ​

2 overloads

OverloadDescription
TranslatePaths(IEnumerable<OpcTranslatePath>)Translates one or more paths starting from one or more dedicated nodes using the specified commands.
TranslatePaths(params OpcTranslatePath[])Translates one or more paths starting from one or more dedicated nodes using the specified commands.

Exceptions (all overloads)

ExceptionCondition
ArgumentNullExceptionThe commands sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe translate path service is currently not supported, especially using the commands specified.
OpcExceptionThe service execution failed upon different circumstances; for more details see exception details. The following issues can lead to that exception: BadNothingToDo and BadTooManyOperations.

TranslatePaths(IEnumerable<OpcTranslatePath>) ​

Translates one or more paths starting from one or more dedicated nodes using the specified commands.

csharp
OpcTranslatePathResultCollection TranslatePaths(
    IEnumerable<OpcTranslatePath> commands)
vbnet
Function TranslatePaths(
    commands As IEnumerable(Of OpcTranslatePath)) As OpcTranslatePathResultCollection

Parameters

NameTypeDescription
commandsIEnumerable<OpcTranslatePath>A sequence of OpcTranslatePath instances to process.

Returns

OpcTranslatePathResultCollection

An instance of the OpcTranslatePathResultCollection class which contains the target identifiers the paths were translated to through the commands specified; together with information about the outcome of each processed command.

Remarks

Known results for the commands 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.

TranslatePaths(params OpcTranslatePath[]) ​

Translates one or more paths starting from one or more dedicated nodes using the specified commands.

csharp
OpcTranslatePathResultCollection TranslatePaths(
    params OpcTranslatePath[] commands)
vbnet
Function TranslatePaths(
    ParamArray commands As OpcTranslatePath()) As OpcTranslatePathResultCollection

Parameters

NameTypeDescription
commandsparams OpcTranslatePath[]An array of OpcTranslatePath instances to process.

Returns

OpcTranslatePathResultCollection

An instance of the OpcTranslatePathResultCollection class which contains the target identifiers the paths were translated to through the commands specified; together with information about the outcome of each processed command.

Remarks

Known results for the commands 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.