Click or drag to resize

IObjectCallMethodT Method (String, Object)

Invokes the specified method and returns the result.

Namespace:  SmartBear.TestLeft.TestObjects
Assembly:  SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax
T CallMethod<T>(
	string name,
	params Object[] parameters
)

Parameters

name
Type: SystemString
The method name.
parameters
Type: SystemObject
An array of method parameters.

Type Parameters

T
The type of the object that will be returned.

Return Value

Type: T
The result returned by the method and converted to a value of the T type.
Exceptions
ExceptionCondition
InvocationExceptionWill be thrown if invocation fails.
WebExceptionWill be thrown if there are network problems.
InvalidCastExceptionWill be thrown if incoming data cannot be converted to the type T.
See Also