InvokeMethods Method (TestObject)

Class

TestObject.

Action

Dynamically invokes a sequence of methods starting at this TestObject.

Each method call except the last one must have a return object. Each return object becomes the target for calling the next method in the list of method names with the next argument list in the list of parameters until the last method call. If the method names, argument lists, or returned objects do not match, a runtime error is generated.

This method is implemented for WPF, Windows Forms, Silverlight, Java SWT and Java Swing.

Syntax

C#
result = testObject.InvokeMethods(names, parameters)
VB
result = testObject.InvokeMethods(names, parameters)
Variable Description
result The result of the last method that was invoked. Object.
names A list of method names in the order that they are to be called. List(Of String).
parameters A list that contains a list of arguments for every method. Trailing empty argument lists may be omitted. List(Of List(Of Object)).