Skip to content

Reference

OpcClient.DeleteReferences Method

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

Reference

OpcClient.DeleteReferences 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

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

DeleteReferences(IEnumerable<OpcDeleteReference>) ​

since v2.7

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

csharp
public OpcStatusCollection DeleteReferences(
    IEnumerable<OpcDeleteReference> commands)
vbnet
Public 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
public OpcStatusCollection DeleteReferences(
    params OpcDeleteReference[] commands)
vbnet
Public 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.