Skip to content

Reference

OpcMethodNode Members

Defines a method node.

Reference

OpcMethodNode Members ​

Type
OpcMethodNode
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcInstanceNode, OpcNode.

Constructors ​

OpcMethodNode ​

16 overloads

OverloadDescription
OpcMethodNode(OpcName, Delegate)Initializes a new instance of the OpcMethodNode class accessible by the name specified with the Delegate call given by callback.
OpcMethodNode(OpcName, IOpcMethodCommand)since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command.
OpcMethodNode(OpcName, IOpcMethodCommand, params OpcArgument[])since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command.
OpcMethodNode(OpcName, IOpcMethodCommand, OpcArgument[], params OpcArgument[])since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command.
OpcMethodNode(OpcName, OpcNodeId, Delegate)Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the delegate to call given by callback.
OpcMethodNode(OpcName, OpcNodeId, IOpcMethodCommand)since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand given by command.
OpcMethodNode(OpcName, OpcNodeId, IOpcMethodCommand, params OpcArgument[])since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand given by command.
OpcMethodNode(OpcName, OpcNodeId, IOpcMethodCommand, OpcArgument[], params OpcArgument[])since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand given by command.
OpcMethodNode(IOpcNode, OpcName, Delegate)Initializes a new instance of the OpcMethodNode class accessible by the name specified with the Delegate call given by callback as a child node of the parent node given.
OpcMethodNode(IOpcNode, OpcName, IOpcMethodCommand)since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command as a child node of the parent node given.
OpcMethodNode(IOpcNode, OpcName, IOpcMethodCommand, params OpcArgument[])since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command as a child node of the parent node given.
OpcMethodNode(IOpcNode, OpcName, IOpcMethodCommand, OpcArgument[], params OpcArgument[])since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command as a child node of the parent node given.
OpcMethodNode(IOpcNode, OpcName, OpcNodeId, Delegate)Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the delegate to call defined by callback as a child node of the parent node given.
OpcMethodNode(IOpcNode, OpcName, OpcNodeId, IOpcMethodCommand)since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand defined by command as a child node of the parent node given.
OpcMethodNode(IOpcNode, OpcName, OpcNodeId, IOpcMethodCommand, params OpcArgument[])since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand defined by command as a child node of the parent node given.
OpcMethodNode(IOpcNode, OpcName, OpcNodeId, IOpcMethodCommand, OpcArgument[], params OpcArgument[])since v2.9Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand defined by command as a child node of the parent node given.

OpcMethodNode(OpcName, Delegate) ​

Initializes a new instance of the OpcMethodNode class accessible by the name specified with the Delegate call given by callback.

csharp
public OpcMethodNode(OpcName name, Delegate callback)
vbnet
Public Sub New(name As OpcName, callback As [Delegate])

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new method node can be accessed.
callbackDelegateThe Delegate to call on method invokation of the new method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe callback is a null reference (Nothing in Visual Basic).

OpcMethodNode(OpcName, IOpcMethodCommand) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command.

csharp
public OpcMethodNode(OpcName name, IOpcMethodCommand command)
vbnet
Public Sub New(name As OpcName, command As IOpcMethodCommand)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new method node can be accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command is a null reference (Nothing in Visual Basic).

OpcMethodNode(OpcName, IOpcMethodCommand, params OpcArgument[]) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command.

csharp
public OpcMethodNode(
    OpcName name,
    IOpcMethodCommand command,
    params OpcArgument[] inputArguments)
vbnet
Public Sub New(
    name As OpcName,
    command As IOpcMethodCommand,
    ParamArray inputArguments As OpcArgument())

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new method node can be accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.
inputArgumentsparams OpcArgument[]An array of OpcArgument instances representing the arguments consumed by the method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command or inputArguments (or one of its items) is a null reference (Nothing in Visual Basic).

OpcMethodNode(OpcName, IOpcMethodCommand, OpcArgument[], params OpcArgument[]) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command.

csharp
public OpcMethodNode(
    OpcName name,
    IOpcMethodCommand command,
    OpcArgument[] inputArguments,
    params OpcArgument[] outputArguments)
vbnet
Public Sub New(
    name As OpcName,
    command As IOpcMethodCommand,
    inputArguments As OpcArgument(),
    ParamArray outputArguments As OpcArgument())

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new method node can be accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.
inputArgumentsOpcArgument[]An array of OpcArgument instances representing the arguments consumed by the method node.
outputArgumentsparams OpcArgument[]An array of OpcArgument instances representing the arguments produced by the method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command, inputArguments (or one of its items) or outputArguments (or one of its items) is a null reference (Nothing in Visual Basic).

OpcMethodNode(OpcName, OpcNodeId, Delegate) ​

Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the delegate to call given by callback.

csharp
public OpcMethodNode(OpcName name, OpcNodeId id, Delegate callback)
vbnet
Public Sub New(name As OpcName, id As OpcNodeId, callback As [Delegate])

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new method node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new method node can be identified and accessed.
callbackDelegateThe Delegate to call on method invokation of the new method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe callback is a null reference (Nothing in Visual Basic).

OpcMethodNode(OpcName, OpcNodeId, IOpcMethodCommand) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand given by command.

csharp
public OpcMethodNode(OpcName name, OpcNodeId id, IOpcMethodCommand command)
vbnet
Public Sub New(name As OpcName, id As OpcNodeId, command As IOpcMethodCommand)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new method node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new method node can be identified and accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command is a null reference (Nothing in Visual Basic).

OpcMethodNode(OpcName, OpcNodeId, IOpcMethodCommand, params OpcArgument[]) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand given by command.

csharp
public OpcMethodNode(
    OpcName name,
    OpcNodeId id,
    IOpcMethodCommand command,
    params OpcArgument[] inputArguments)
vbnet
Public Sub New(
    name As OpcName,
    id As OpcNodeId,
    command As IOpcMethodCommand,
    ParamArray inputArguments As OpcArgument())

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new method node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new method node can be identified and accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.
inputArgumentsparams OpcArgument[]An array of OpcArgument instances representing the arguments consumed by the method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command or inputArguments (or one of its items) is a null reference (Nothing in Visual Basic).

OpcMethodNode(OpcName, OpcNodeId, IOpcMethodCommand, OpcArgument[], params OpcArgument[]) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand given by command.

csharp
public OpcMethodNode(
    OpcName name,
    OpcNodeId id,
    IOpcMethodCommand command,
    OpcArgument[] inputArguments,
    params OpcArgument[] outputArguments)
vbnet
Public Sub New(
    name As OpcName,
    id As OpcNodeId,
    command As IOpcMethodCommand,
    inputArguments As OpcArgument(),
    ParamArray outputArguments As OpcArgument())

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new method node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new method node can be identified and accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.
inputArgumentsOpcArgument[]An array of OpcArgument instances representing the arguments consumed by the method node.
outputArgumentsparams OpcArgument[]An array of OpcArgument instances representing the arguments produced by the method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command, inputArguments (or one of its items) or outputArguments (or one of its items) is a null reference (Nothing in Visual Basic).

OpcMethodNode(IOpcNode, OpcName, Delegate) ​

Initializes a new instance of the OpcMethodNode class accessible by the name specified with the Delegate call given by callback as a child node of the parent node given.

csharp
public OpcMethodNode(IOpcNode parent, OpcName name, Delegate callback)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName, callback As [Delegate])

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new method node can be accessed.
callbackDelegateThe Delegate to call on method invokation of the new method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe callback is a null reference (Nothing in Visual Basic).

OpcMethodNode(IOpcNode, OpcName, IOpcMethodCommand) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command as a child node of the parent node given.

csharp
public OpcMethodNode(IOpcNode parent, OpcName name, IOpcMethodCommand command)
vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    command As IOpcMethodCommand)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new method node can be accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command is a null reference (Nothing in Visual Basic).

OpcMethodNode(IOpcNode, OpcName, IOpcMethodCommand, params OpcArgument[]) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command as a child node of the parent node given.

csharp
public OpcMethodNode(
    IOpcNode parent,
    OpcName name,
    IOpcMethodCommand command,
    params OpcArgument[] inputArguments)
vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    command As IOpcMethodCommand,
    ParamArray inputArguments As OpcArgument())

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new method node can be accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.
inputArgumentsparams OpcArgument[]An array of OpcArgument instances representing the arguments consumed by the method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command or inputArguments (or one of its items) is a null reference (Nothing in Visual Basic).

OpcMethodNode(IOpcNode, OpcName, IOpcMethodCommand, OpcArgument[], params OpcArgument[]) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name specified with the IOpcMethodCommand given by command as a child node of the parent node given.

csharp
public OpcMethodNode(
    IOpcNode parent,
    OpcName name,
    IOpcMethodCommand command,
    OpcArgument[] inputArguments,
    params OpcArgument[] outputArguments)
vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    command As IOpcMethodCommand,
    inputArguments As OpcArgument(),
    ParamArray outputArguments As OpcArgument())

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new method node can be accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.
inputArgumentsOpcArgument[]An array of OpcArgument instances representing the arguments consumed by the method node.
outputArgumentsparams OpcArgument[]An array of OpcArgument instances representing the arguments produced by the method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command, inputArguments (or one of its items) or outputArguments (or one of its items) is a null reference (Nothing in Visual Basic).

OpcMethodNode(IOpcNode, OpcName, OpcNodeId, Delegate) ​

Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the delegate to call defined by callback as a child node of the parent node given.

csharp
public OpcMethodNode(
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    Delegate callback)
vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    callback As [Delegate])

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new method node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new method node can be identified and accessed.
callbackDelegateThe Delegate to call on method invokation of the new method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe callback is a null reference (Nothing in Visual Basic).

OpcMethodNode(IOpcNode, OpcName, OpcNodeId, IOpcMethodCommand) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand defined by command as a child node of the parent node given.

csharp
public OpcMethodNode(
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    IOpcMethodCommand command)
vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    command As IOpcMethodCommand)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new method node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new method node can be identified and accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command is a null reference (Nothing in Visual Basic).

OpcMethodNode(IOpcNode, OpcName, OpcNodeId, IOpcMethodCommand, params OpcArgument[]) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand defined by command as a child node of the parent node given.

csharp
public OpcMethodNode(
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    IOpcMethodCommand command,
    params OpcArgument[] inputArguments)
vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    command As IOpcMethodCommand,
    ParamArray inputArguments As OpcArgument())

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new method node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new method node can be identified and accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.
inputArgumentsparams OpcArgument[]An array of OpcArgument instances representing the arguments consumed by the method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command or inputArguments (or one of its items) is a null reference (Nothing in Visual Basic).

OpcMethodNode(IOpcNode, OpcName, OpcNodeId, IOpcMethodCommand, OpcArgument[], params OpcArgument[]) ​

since v2.9

Initializes a new instance of the OpcMethodNode class accessible by the name and id specified with the IOpcMethodCommand defined by command as a child node of the parent node given.

csharp
public OpcMethodNode(
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    IOpcMethodCommand command,
    OpcArgument[] inputArguments,
    params OpcArgument[] outputArguments)
vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    command As IOpcMethodCommand,
    inputArguments As OpcArgument(),
    ParamArray outputArguments As OpcArgument())

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new method node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new method node can be identified and accessed.
commandIOpcMethodCommandThe IOpcMethodCommand to call on method invokation of the new method node.
inputArgumentsOpcArgument[]An array of OpcArgument instances representing the arguments consumed by the method node.
outputArgumentsparams OpcArgument[]An array of OpcArgument instances representing the arguments produced by the method node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command, inputArguments (or one of its items) or outputArguments (or one of its items) is a null reference (Nothing in Visual Basic).

Properties ​

Callback ​

Gets the Delegate of the method to invoke in case there this method node is called.

csharp
public Delegate Callback { get; }
vbnet
Public ReadOnly Property Callback As [Delegate]

Property value

Delegate

The Delegate to invoke on method call or a null reference (Nothing in Visual Basic) if Command is used instead of a delegate.

CanExecute ​

Gets or sets a value indicating whether the method can be called.

csharp
public bool CanExecute { get; set; }
vbnet
Public Property CanExecute As Boolean

Property value

Boolean

The value true if the method can be called; otherwise the value false.

Exceptions

ExceptionCondition
InvalidOperationExceptionThe property can't changed in case there Command is used for the current OpcMethodNode.

CanUserExecute ​

Gets or sets a value indicating whether the method can be called by the current user.

csharp
public bool CanUserExecute { get; set; }
vbnet
Public Property CanUserExecute As Boolean

Property value

Boolean

The value true if the method can be called by the current user; otherwise the value false.

Exceptions

ExceptionCondition
InvalidOperationExceptionThe property can't changed in case there Command is used for the current OpcMethodNode.

Command ​

since v2.9

Gets the IOpcMethodCommand of the method to invoke in case there this method node is called.

csharp
public IOpcMethodCommand Command { get; set; }
vbnet
Public Property Command As IOpcMethodCommand

Property value

IOpcMethodCommand

An instance implementing the IOpcMethodCommand interface through that the method call is to be handled or a null reference (Nothing in Visual Basic) if Callback is used instead of a command.

DefaultReferenceTypeId ​

protected · override

Gets the default identifier which identifies the type that defines the underlying node reference within this OpcInstanceNode is referenced by its parent node.

csharp
protected override OpcNodeId DefaultReferenceTypeId { get; }
vbnet
Protected Overrides ReadOnly Property DefaultReferenceTypeId As OpcNodeId

Property value

OpcNodeId

The OpcNodeId of the reference wihin this OpcInstanceNode is referenced. These reference defines the typical behaviour of an instance node and its role in the address space regarding its parent. If there exists no specific reference type a null reference (Nothing in Visual Basic).

Overrides

DefaultReferenceTypeId

InputArguments ​

Gets a read-only collection of OpcArgument instances representing the arguments consumed by the method node.

csharp
public OpcReadOnlyArgumentCollection InputArguments { get; }
vbnet
Public ReadOnly Property InputArguments As OpcReadOnlyArgumentCollection

Property value

OpcReadOnlyArgumentCollection

An instance of the OpcReadOnlyArgumentCollection class with the OpcArgument instances used to define which arguments are consumed by the method node. In case there the collection is empty, the method does not accept any argument.

OutputArguments ​

Gets a read-only collection of OpcArgument instances representing the arguments produced by the method node.

csharp
public OpcReadOnlyArgumentCollection OutputArguments { get; }
vbnet
Public ReadOnly Property OutputArguments As OpcReadOnlyArgumentCollection

Property value

OpcReadOnlyArgumentCollection

An instance of the OpcReadOnlyArgumentCollection class with the OpcArgument instances used to define which arguments are produced by the method node. In case there the collection is empty, the method does not return any argument.

Methods ​

Call ​

since v2.33

Calls the method represented by this node on its parent node using the inputArguments specified.

csharp
public void Call(
    OpcContext context,
    List<object> inputArguments,
    List<object> outputArguments)
vbnet
Public Sub [Call](
    context As OpcContext,
    inputArguments As List(Of Object),
    outputArguments As List(Of Object))

Parameters

NameTypeDescription
contextOpcContextThe OpcContext to use to call the method.
inputArgumentsList<Object>The values of the input arguments in the order of the InputArguments.
outputArgumentsList<Object>The list to which the values of the output arguments are added.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context, inputArguments or outputArguments is a null reference (Nothing in Visual Basic).
OpcExceptionThe call failed, e.g. with BadArgumentsMissing if the number of inputArguments differs from the number of InputArguments, or with BadInvalidArgument if an input argument is invalid.

InitializeDefaults ​

protected · override

Initializes the default values used by the OpcInstanceNode.

csharp
protected override void InitializeDefaults()
vbnet
Protected Overrides Sub InitializeDefaults()

Overrides

InitializeDefaults

Remarks

This method is used to ensure the availability of appropriate node specific default values. For more information like when this method is to be overwritten see InitializeDefaults.

ReadAttributeValueCore ​

protected · override · since v2.9

Determines the value of the attribute to read. In case there a Command is used, the command determines the value of the Executable and UserExecutable attributes; otherwise the value is determined as by the base class.

csharp
protected override OpcAttributeValue<T> ReadAttributeValueCore<T>(
    OpcReadAttributeValueContext context,
    OpcAttributeValue<T> value)
vbnet
Protected Overrides Function ReadAttributeValueCore(Of T)(
    context As OpcReadAttributeValueContext,
    value As OpcAttributeValue(Of T)) As OpcAttributeValue(Of T)

Type parameters

NameDescription
TThe type of attribute value to read.

Parameters

NameTypeDescription
contextOpcReadAttributeValueContextThe OpcReadAttributeValueContext to use to read the attribute value.
valueOpcAttributeValue<T>The preliminary OpcAttributeValue<T>.

Returns

OpcAttributeValue<T>

The determined OpcAttributeValue<T>.

Overrides

ReadAttributeValueCore<T>(OpcReadAttributeValueContext, OpcAttributeValue<T>)

WriteAttributeValueCore ​

protected · override · since v2.9

Determines the value of the attribute to write. In case there a Command is used, no attribute can be written; otherwise the value is determined as by the base class.

csharp
protected override OpcAttributeValue<T> WriteAttributeValueCore<T>(
    OpcWriteAttributeValueContext context,
    OpcAttributeValue<T> value)
vbnet
Protected Overrides Function WriteAttributeValueCore(Of T)(
    context As OpcWriteAttributeValueContext,
    value As OpcAttributeValue(Of T)) As OpcAttributeValue(Of T)

Type parameters

NameDescription
TThe type of attribute value to write.

Parameters

NameTypeDescription
contextOpcWriteAttributeValueContextThe OpcWriteAttributeValueContext to use to write the attribute value.
valueOpcAttributeValue<T>The OpcAttributeValue<T> to write.

Returns

OpcAttributeValue<T>

The OpcAttributeValue<T> written.

Exceptions

ExceptionCondition
OpcExceptionA Command is used (BadWriteNotSupported).

Overrides

WriteAttributeValueCore<T>(OpcWriteAttributeValueContext, OpcAttributeValue<T>)