Skip to content

Reference

OpcClient.DeleteReference Method

Deletes a reference of existing nodes in the address space hierarchy using the command specified.

Reference

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

5 overloads

OverloadDescription
DeleteReference(OpcDeleteReference)since v2.7Deletes a reference of existing nodes in the address space hierarchy using the command specified.
DeleteReference(OpcNodeId, OpcNodeId)Deletes one or more references of existing nodes in the address space hierarchy using the identifiers of the nodes which shall not longer reference each other.
DeleteReference(OpcNodeId, OpcNodeId, OpcReferenceDirection?)Deletes one or more references of existing nodes in the address space hierarchy using the identifiers of the nodes which shall not longer reference each other using the direction specified.
DeleteReference(OpcNodeId, OpcNodeId, OpcReferenceDirection?, OpcReferenceType)Deletes one or more references of existing nodes in the address space hierarchy using the identifiers of the nodes which shall not longer reference each other using the direction specified.
DeleteReference(OpcNodeId, OpcNodeId, OpcReferenceDirection?, OpcNodeId)since v2.7Deletes one or more references of existing nodes in the address space hierarchy using the identifiers of the nodes which shall not longer reference each other using the direction 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.

DeleteReference(OpcDeleteReference) ​

since v2.7

Deletes a reference of existing nodes in the address space hierarchy using the command specified.

csharp
public OpcStatus DeleteReference(OpcDeleteReference command)
vbnet
Public Function DeleteReference(command As OpcDeleteReference) As OpcStatus

Parameters

NameTypeDescription
commandOpcDeleteReferenceThe OpcDeleteReference instance to process.

Returns

OpcStatus

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

Exceptions

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

Remarks

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

DeleteReference(OpcNodeId, OpcNodeId) ​

Deletes one or more references of existing nodes in the address space hierarchy using the identifiers of the nodes which shall not longer reference each other. The relation is deleted in bidirectional direction using Organizes as the type of reference.

csharp
public OpcStatus DeleteReference(OpcNodeId nodeId, OpcNodeId targetNodeId)
vbnet
Public Function DeleteReference(
    nodeId As OpcNodeId,
    targetNodeId As OpcNodeId) As OpcStatus

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId through that the source node can be identified and accessed.
targetNodeIdOpcNodeIdThe OpcNodeId through that the target node can be identified and accessed.

Returns

OpcStatus

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId or targetNodeId is equals Null.
ArgumentNullExceptionThe nodeId or targetNodeId is a null reference (Nothing in Visual Basic).

Remarks

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

DeleteReference(OpcNodeId, OpcNodeId, OpcReferenceDirection?) ​

Deletes one or more references of existing nodes in the address space hierarchy using the identifiers of the nodes which shall not longer reference each other using the direction specified. The reference to delete have to be of the relation defined by direction using the Organizes as the type of reference.

csharp
public OpcStatus DeleteReference(
    OpcNodeId nodeId,
    OpcNodeId targetNodeId,
    OpcReferenceDirection? direction)
vbnet
Public Function DeleteReference(
    nodeId As OpcNodeId,
    targetNodeId As OpcNodeId,
    direction As OpcReferenceDirection?) As OpcStatus

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId through that the source node can be identified and accessed.
targetNodeIdOpcNodeIdThe OpcNodeId through that the target node can be identified and accessed.
directionNullable<OpcReferenceDirection>One of the members defined by the OpcReferenceDirection enumeration which defines the kind of relation of reference to delete or a null reference (Nothing in Visual Basic) in case there the relation is to be deleted in bidirectional direction.

Returns

OpcStatus

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId or targetNodeId is equals Null.
ArgumentNullExceptionThe nodeId or targetNodeId is a null reference (Nothing in Visual Basic).

Remarks

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

DeleteReference(OpcNodeId, OpcNodeId, OpcReferenceDirection?, OpcReferenceType) ​

Deletes one or more references of existing nodes in the address space hierarchy using the identifiers of the nodes which shall not longer reference each other using the direction specified. The reference to delete have to be of the relation defined by direction using the referenceType specified as the type of reference.

csharp
public OpcStatus DeleteReference(
    OpcNodeId nodeId,
    OpcNodeId targetNodeId,
    OpcReferenceDirection? direction,
    OpcReferenceType referenceType)
vbnet
Public Function DeleteReference(
    nodeId As OpcNodeId,
    targetNodeId As OpcNodeId,
    direction As OpcReferenceDirection?,
    referenceType As OpcReferenceType) As OpcStatus

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId through that the source node can be identified and accessed.
targetNodeIdOpcNodeIdThe OpcNodeId through that the target node can be identified and accessed.
directionNullable<OpcReferenceDirection>One of the members defined by the OpcReferenceDirection enumeration which defines the kind of relation of reference to delete or a null reference (Nothing in Visual Basic) in case there the relation is to be deleted in bidirectional direction.
referenceTypeOpcReferenceTypeOne of the members defined by the OpcReferenceType enumeration to use to setup the reference between the source and the target node identified by the nodeId and the targetNodeId.

Returns

OpcStatus

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId or targetNodeId is equals Null.
ArgumentNullExceptionThe nodeId or targetNodeId is a null reference (Nothing in Visual Basic).

Remarks

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

DeleteReference(OpcNodeId, OpcNodeId, OpcReferenceDirection?, OpcNodeId) ​

since v2.7

Deletes one or more references of existing nodes in the address space hierarchy using the identifiers of the nodes which shall not longer reference each other using the direction specified. The reference to delete have to be of the relation defined by direction using the type of reference identified by the referenceTypeId specified.

csharp
public OpcStatus DeleteReference(
    OpcNodeId nodeId,
    OpcNodeId targetNodeId,
    OpcReferenceDirection? direction,
    OpcNodeId referenceTypeId)
vbnet
Public Function DeleteReference(
    nodeId As OpcNodeId,
    targetNodeId As OpcNodeId,
    direction As OpcReferenceDirection?,
    referenceTypeId As OpcNodeId) As OpcStatus

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId through that the source node can be identified and accessed.
targetNodeIdOpcNodeIdThe OpcNodeId through that the target node can be identified and accessed.
directionNullable<OpcReferenceDirection>One of the members defined by the OpcReferenceDirection enumeration which defines the kind of relation of reference to delete or a null reference (Nothing in Visual Basic) in case there the relation is to be deleted in bidirectional direction.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to use to setup the reference between the source and the target node identified by the nodeId and the targetNodeId.

Returns

OpcStatus

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId, targetNodeId or referenceTypeId is equals Null.
ArgumentNullExceptionThe nodeId, targetNodeId or referenceTypeId is a null reference (Nothing in Visual Basic).

Remarks

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