ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.ExpressionInfo Assembly / GrapeCity.Enterprise.Data.Expressions.Evaluation Namespace / DynamicDispatch Class / Invoke Method
The name of the method to invoke.
The object on which to invoke the method. Must not be null.
An array of arguments to pass to the method. If no arguments are needed, pass null or an empty array.

In This Topic
    Invoke Method (DynamicDispatch)
    In This Topic
    Invokes an instance method on a given object using dynamic dispatch.
    Syntax
    'Declaration
     
    Public Shared Function Invoke( _
       ByVal methodName As String, _
       ByVal target As Object, _
       ByVal args() As Object _
    ) As Object
    public static object Invoke( 
       string methodName,
       object target,
       object[] args
    )

    Parameters

    methodName
    The name of the method to invoke.
    target
    The object on which to invoke the method. Must not be null.
    args
    An array of arguments to pass to the method. If no arguments are needed, pass null or an empty array.

    Return Value

    The value returned by the invoked method, if any. If the method has no return value, null is returned.
    Exceptions
    ExceptionDescription
    Thrown if target is null.
    See Also