Skip to content

Reference

IOpcDeleteReferencesService Members

Defines a specialized IOpcService<TResponse, TRequest> which can be used to delete one or more references of existing nodes in the address space hierarchy.

Reference

IOpcDeleteReferencesService Members ​

Type
IOpcDeleteReferencesService
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<OpcDeleteReferencesResponse, OpcDeleteReferencesRequest>.

Methods ​

DeleteReferences ​

2 overloads · since v2.7

OverloadDescription
DeleteReferences(IEnumerable<OpcDeleteReference>)since v2.7Deletes one or more references of existing nodes in the address space hierarchy using the commands specified.
DeleteReferences(params OpcDeleteReference[])since v2.7Deletes one or more references of existing nodes in the address space hierarchy using the commands specified.

Exceptions (all overloads)

ExceptionCondition
ArgumentNullExceptionThe commands sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe delete reference 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.

DeleteReferences(IEnumerable<OpcDeleteReference>) ​

since v2.7

Deletes one or more references of existing nodes in the address space hierarchy using the commands specified.

csharp
OpcStatusCollection DeleteReferences(IEnumerable<OpcDeleteReference> commands)
vbnet
Function DeleteReferences(
    commands As IEnumerable(Of OpcDeleteReference)) As OpcStatusCollection

Parameters

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

Returns

OpcStatusCollection

An instance of the OpcStatusCollection class which contains the information about the outcome of each processed command.

Remarks

Known results for the commands specified are:

StatusDescription
BadSourceNodeIdInvalidFor more details see BadSourceNodeIdInvalid.
BadReferenceTypeIdInvalidFor more details see BadReferenceTypeIdInvalid.
BadServerIndexInvalidThe server index is not valid.
BadTargetNodeIdInvalidFor more details see BadTargetNodeIdInvalid.
BadUserAccessDeniedFor more details see BadUserAccessDenied.
BadNoDeleteRightsFor more details see BadNoDeleteRights.

DeleteReferences(params OpcDeleteReference[]) ​

since v2.7

Deletes one or more references of existing nodes in the address space hierarchy using the commands specified.

csharp
OpcStatusCollection DeleteReferences(params OpcDeleteReference[] commands)
vbnet
Function DeleteReferences(
    ParamArray commands As OpcDeleteReference()) As OpcStatusCollection

Parameters

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

Returns

OpcStatusCollection

An instance of the OpcStatusCollection class which contains the information about the outcome of each processed command.

Remarks

Known results for the commands specified are:

StatusDescription
BadSourceNodeIdInvalidFor more details see BadSourceNodeIdInvalid.
BadReferenceTypeIdInvalidFor more details see BadReferenceTypeIdInvalid.
BadServerIndexInvalidThe server index is not valid.
BadTargetNodeIdInvalidFor more details see BadTargetNodeIdInvalid.
BadUserAccessDeniedFor more details see BadUserAccessDenied.
BadNoDeleteRightsFor more details see BadNoDeleteRights.