Click or drag to resize

ScriptProxy.Call Method (String, ProxyCallConvention,Object[])

Attempt to call a method on the managed instance with the specified name and arguments. This works in a similar was as SendMessage(String) where the method name is specified. Any number of arguments may be specified but the target method must expect the arguments.

Namespace:  UMod.Scripting
Assembly:  UMod (in UMod.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Object Call(
	string methodName,
	ProxyCallConvention callConvention,
	params Object[] arguments
)

Parameters

methodName
Type: System.String
The name of the method to call
callConvention
Type: UMod.Scripting.ProxyCallConvention
The method calling convention
arguments
Type:System.Object[]
The arguments passed to the method

Return Value

Type: Object
The value returned from the target method or null if the target method does not return a value
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe proxy has already been disposed
TargetExceptionThe target method could not be found on the managed type
See Also