Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcMethodNode type exposes the following members.
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
The callback
is a null reference (Nothing in Visual Basic).
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
The command
is a null reference (Nothing in Visual Basic).
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
The command
or inputArguments
(or one of its items) is a null reference (Nothing in Visual Basic).
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
The command
, inputArguments
(or one of its items) or outputArguments
(or one of its items) is a null reference (Nothing in Visual Basic).
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
The callback
is a null reference (Nothing in Visual Basic).
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
The command
is a null reference (Nothing in Visual Basic).
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
The command
or inputArguments
(or one of its items) is a null reference (Nothing in Visual Basic).
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
The command
, inputArguments
(or one of its items) or outputArguments
(or one of its items) is a null reference (Nothing in Visual Basic).
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
The callback
is a null reference (Nothing in Visual Basic).
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
The command
is a null reference (Nothing in Visual Basic).
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
The command
or inputArguments
(or one of its items) is a null reference (Nothing in Visual Basic).
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
The command
, inputArguments
(or one of its items) or outputArguments
(or one of its items) is a null reference (Nothing in Visual Basic).
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
The callback
is a null reference (Nothing in Visual Basic).
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
The command
is a null reference (Nothing in Visual Basic).
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
The command
or inputArguments
(or one of its items) is a null reference (Nothing in Visual Basic).
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
The command
, inputArguments
(or one of its items) or outputArguments
(or one of its items) is a null reference (Nothing in Visual Basic).
Gets or sets a value indicating whether the method can be called.
C#
public bool CanExecute { get; set; }
Property Value
The value true if the method can be called; otherwise the value false.
Exceptions
The property can't changed in case there Command is used for the current OpcMethodNode.
Gets or sets a value indicating whether the method can be called by the current user.
C#
public bool CanUserExecute { get; set; }
Property Value
The value true if the method can be called by the current user; otherwise the value false.
Exceptions
The property can't changed in case there Command is used for the current OpcMethodNode.
Gets the IOpcMethodCommand of the method to invoke in case there this method node is called.
C#
public IOpcMethodCommand Command { get; set; }
Property Value
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.
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
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).
Gets a read-only collection of OpcArgument instances representing the arguments consumed by the method node.
C#
public OpcReadOnlyArgumentCollection InputArguments { get; }
Property Value
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.
Gets a read-only collection of OpcArgument instances representing the arguments produced by the method node.
C#
public OpcReadOnlyArgumentCollection OutputArguments { get; }
Property Value
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.
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.
C#
protected override OpcAttributeValue<T> ReadAttributeValueCore<T>(OpcReadAttributeValueContext context, OpcAttributeValue<T> value)
Parameters
context
OpcReadAttributeValueContext
value
OpcAttributeValue<T>
Returns
C#
protected override OpcAttributeValue<T> WriteAttributeValueCore<T>(OpcWriteAttributeValueContext context, OpcAttributeValue<T> value)
Parameters
context
OpcWriteAttributeValueContext
value
OpcAttributeValue<T>
Returns