ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Viewer.Common Assembly / GrapeCity.ActiveReports.Viewer.Common Namespace / AsyncCommand Class / AsyncCommand Constructor
The command will be executed.
Determines whether the command can be executed or not.

In This Topic
    AsyncCommand Constructor
    In This Topic
    Initializes a new instance of the AsyncCommand class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal executeAction As Func(Of Object,Task), _
       ByVal canExecute As Func(Of Object,Boolean) _
    )
    public AsyncCommand( 
       Func<object,Task> executeAction,
       Func<object,bool> canExecute
    )

    Parameters

    executeAction
    The command will be executed.
    canExecute
    Determines whether the command can be executed or not.
    See Also