Click or drag to resize

ModuleEvaluate Method

Evaluates a Module's public function (or property get) and return a result.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
public Object? Evaluate(
	string name,
	params Object?[]? args
)

Parameters

name  String
Evaluate the 'name' function (or property get).
args  Object
These argument values are passed by value to the function (or property get). Use EvaluatePA to pass values by reference. Named arguments are allowed.

Return Value

Object
The value of the function or property.

Implements

IModuleEvaluate(String, Object)
Exceptions
ExceptionCondition
ExceptionGeneric exception during script execution.
Remarks
This method doesn't return until the function has completed. If it fails to complete it is terminated and an exception is thrown. Use Error.FromException to get the error associated with the exception.
See Also