Invoke Method
Invoke a method of a class
Last updated
Invoke a method of a class
Last updated
The activity is used to implement a code that is outside of the standard built-in activities and can also be used to invoke a method of a class.
Method Name: String Argument
Required
Specifies the method name to be invoked.
Parameters: Specifies the parameters of the method that is to be invoked.
Target Object: Object Variable
Specifies the object that contains the non-static method to be executed.
Target Type: Specifies the type that contains the static method to be executed. We select the target type that contains the static method we want to invoke by clicking on the button on the right-most end of the property which opens a window.
For example : You can select the System.IO.File
type to invoke its method ReadAllTextAsync()
Output: Object Variable
The variable that stores the return value of the method execution, if any.