OpcMethodNode Members

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcMethodNode type exposes the following members.

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.

C#

public OpcMethodNode(IOpcNode parent, OpcName name, Delegate callback)


Parameters

parent IOpcNode

The IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.

name OpcName

The OpcName through that the new method node can be accessed.

callback Delegate

The Delegate to call on method invokation of the new method node.


Exceptions

ArgumentNullException

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

OpcMethodNode(IOpcNode, OpcName, IOpcMethodCommand)

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.

C#

public OpcMethodNode(IOpcNode parent, OpcName name, IOpcMethodCommand command)


Parameters

parent IOpcNode

The IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.

name OpcName

The OpcName through that the new method node can be accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.


Exceptions

ArgumentNullException

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

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

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.

C#

public OpcMethodNode(IOpcNode parent, OpcName name, IOpcMethodCommand command, params OpcArgument[] inputArguments)


Parameters

parent IOpcNode

The IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.

name OpcName

The OpcName through that the new method node can be accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.

inputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments consumed by the method node.


Exceptions

ArgumentNullException

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

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

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.

C#

public OpcMethodNode(IOpcNode parent, OpcName name, IOpcMethodCommand command, OpcArgument[] inputArguments, params OpcArgument[] outputArguments)


Parameters

parent IOpcNode

The IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.

name OpcName

The OpcName through that the new method node can be accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.

inputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments consumed by the method node.

outputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments produced by the method node.


Exceptions

ArgumentNullException

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

C#

public OpcMethodNode(IOpcNode parent, OpcName name, OpcNodeId id, Delegate callback)


Parameters

parent IOpcNode

The IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.

name OpcName

The OpcName through that the new method node can be accessed.

id OpcNodeId

The OpcNodeId through that the new method node can be identified and accessed.

callback Delegate

The Delegate to call on method invokation of the new method node.


Exceptions

ArgumentNullException

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

OpcMethodNode(IOpcNode, OpcName, OpcNodeId, IOpcMethodCommand)

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.

C#

public OpcMethodNode(IOpcNode parent, OpcName name, OpcNodeId id, IOpcMethodCommand command)


Parameters

parent IOpcNode

The IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.

name OpcName

The OpcName through that the new method node can be accessed.

id OpcNodeId

The OpcNodeId through that the new method node can be identified and accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.


Exceptions

ArgumentNullException

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

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

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.

C#

public OpcMethodNode(IOpcNode parent, OpcName name, OpcNodeId id, IOpcMethodCommand command, params OpcArgument[] inputArguments)


Parameters

parent IOpcNode

The IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.

name OpcName

The OpcName through that the new method node can be accessed.

id OpcNodeId

The OpcNodeId through that the new method node can be identified and accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.

inputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments consumed by the method node.


Exceptions

ArgumentNullException

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

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

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.

C#

public OpcMethodNode(IOpcNode parent, OpcName name, OpcNodeId id, IOpcMethodCommand command, OpcArgument[] inputArguments, params OpcArgument[] outputArguments)


Parameters

parent IOpcNode

The IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.

name OpcName

The OpcName through that the new method node can be accessed.

id OpcNodeId

The OpcNodeId through that the new method node can be identified and accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.

inputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments consumed by the method node.

outputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments produced by the method node.


Exceptions

ArgumentNullException

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

OpcMethodNode(OpcName, Delegate)

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

C#

public OpcMethodNode(OpcName name, Delegate callback)


Parameters

name OpcName

The OpcName through that the new method node can be accessed.

callback Delegate

The Delegate to call on method invokation of the new method node.


Exceptions

ArgumentNullException

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

OpcMethodNode(OpcName, IOpcMethodCommand)

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

C#

public OpcMethodNode(OpcName name, IOpcMethodCommand command)


Parameters

name OpcName

The OpcName through that the new method node can be accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.


Exceptions

ArgumentNullException

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

OpcMethodNode(OpcName, IOpcMethodCommand, OpcArgument[])

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

C#

public OpcMethodNode(OpcName name, IOpcMethodCommand command, params OpcArgument[] inputArguments)


Parameters

name OpcName

The OpcName through that the new method node can be accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.

inputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments consumed by the method node.


Exceptions

ArgumentNullException

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

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

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

C#

public OpcMethodNode(OpcName name, IOpcMethodCommand command, OpcArgument[] inputArguments, params OpcArgument[] outputArguments)


Parameters

name OpcName

The OpcName through that the new method node can be accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.

inputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments consumed by the method node.

outputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments produced by the method node.


Exceptions

ArgumentNullException

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

C#

public OpcMethodNode(OpcName name, OpcNodeId id, Delegate callback)


Parameters

name OpcName

The OpcName through that the new method node can be accessed.

id OpcNodeId

The OpcNodeId through that the new method node can be identified and accessed.

callback Delegate

The Delegate to call on method invokation of the new method node.


Exceptions

ArgumentNullException

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

OpcMethodNode(OpcName, OpcNodeId, IOpcMethodCommand)

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

C#

public OpcMethodNode(OpcName name, OpcNodeId id, IOpcMethodCommand command)


Parameters

name OpcName

The OpcName through that the new method node can be accessed.

id OpcNodeId

The OpcNodeId through that the new method node can be identified and accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.


Exceptions

ArgumentNullException

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

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

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

C#

public OpcMethodNode(OpcName name, OpcNodeId id, IOpcMethodCommand command, params OpcArgument[] inputArguments)


Parameters

name OpcName

The OpcName through that the new method node can be accessed.

id OpcNodeId

The OpcNodeId through that the new method node can be identified and accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.

inputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments consumed by the method node.


Exceptions

ArgumentNullException

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

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

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

C#

public OpcMethodNode(OpcName name, OpcNodeId id, IOpcMethodCommand command, OpcArgument[] inputArguments, params OpcArgument[] outputArguments)


Parameters

name OpcName

The OpcName through that the new method node can be accessed.

id OpcNodeId

The OpcNodeId through that the new method node can be identified and accessed.

command IOpcMethodCommand

The IOpcMethodCommand to call on method invokation of the new method node.

inputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments consumed by the method node.

outputArguments OpcArgument[]

An array of OpcArgument instances representing the arguments produced by the method node.


Exceptions

ArgumentNullException

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

Callback

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

C#

public Delegate Callback { get; }


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.

C#

public bool CanExecute { get; set; }


Property Value

Boolean

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



Exceptions

InvalidOperationException

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

C#

public bool CanUserExecute { get; set; }


Property Value

Boolean

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



Exceptions

InvalidOperationException

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

Command

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

C#

public IOpcMethodCommand Command { get; set; }


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

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

C#

protected override OpcNodeId DefaultReferenceTypeId { get; }


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

InputArguments

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

C#

public OpcReadOnlyArgumentCollection InputArguments { get; }


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.

C#

public OpcReadOnlyArgumentCollection OutputArguments { get; }


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.

InitializeDefaults()

Initializes the default values used by the OpcInstanceNode.

C#

protected override void 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<T>(OpcReadAttributeValueContext, OpcAttributeValue<T>)

C#

protected override OpcAttributeValue<T> ReadAttributeValueCore<T>(OpcReadAttributeValueContext context, OpcAttributeValue<T> value)


Parameters

context OpcReadAttributeValueContext


value OpcAttributeValue<T>



Returns

OpcAttributeValue<T>

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

C#

protected override OpcAttributeValue<T> WriteAttributeValueCore<T>(OpcWriteAttributeValueContext context, OpcAttributeValue<T> value)


Parameters

context OpcWriteAttributeValueContext


value OpcAttributeValue<T>



Returns

OpcAttributeValue<T>