EasyUA Reference
Call(NodeId,NodeId,List<Object>) Method
See Also  Send Feedback
EasyUA Assembly > Advosol.EasyUA Namespace > Session Class > Call Method : Call(NodeId,NodeId,List<Object>) Method

objectId
The NodeId of the Object or ObjectType on which the Method is invoked.
In case of an ObjectType the ObjectType or a supertype of the ObjectType shall be the source of a HasComponent Reference (or subtype of HasComponent Reference) to the Method specified in methodId.
In case of an Object the Object or the ObjectType of the Object or a supertype of that ObjectType shall be the source of a HasComponent Reference (or subtype of HasComponent Reference) to the Method specified in methodId.
methodId
NodeId of the Method to invoke.
If the objectId is the NodeId of an Object, it is allowed to use the NodeId of a Method that is the target of a HasComponent Reference from the ObjectType of the Object.
args
List of input argument values. An empty list indicates that there are no input arguments. The size and order of this list matches the size and order of the input arguments defined by the input InputArguments Property of the Method.
The name, a description and the data type of each argument are defined by the Argument structure in each element of the method’s InputArguments Property.

Glossary Item Box

Syntax

Visual Basic (Usage)Copy Code
Dim instance As Session
Dim objectId As NodeId
Dim methodId As NodeId
Dim args As List(Of Object)
Dim value As List(Of Object)
 
value = instance.Call(objectId, methodId, args)

Parameters

objectId
The NodeId of the Object or ObjectType on which the Method is invoked.
In case of an ObjectType the ObjectType or a supertype of the ObjectType shall be the source of a HasComponent Reference (or subtype of HasComponent Reference) to the Method specified in methodId.
In case of an Object the Object or the ObjectType of the Object or a supertype of that ObjectType shall be the source of a HasComponent Reference (or subtype of HasComponent Reference) to the Method specified in methodId.
methodId
NodeId of the Method to invoke.
If the objectId is the NodeId of an Object, it is allowed to use the NodeId of a Method that is the target of a HasComponent Reference from the ObjectType of the Object.
args
List of input argument values. An empty list indicates that there are no input arguments. The size and order of this list matches the size and order of the input arguments defined by the input InputArguments Property of the Method.
The name, a description and the data type of each argument are defined by the Argument structure in each element of the method’s InputArguments Property.

Return Value

The result of the Method call.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.