Defines the method that determines whether the action can execute in its current state.
Syntax
'Declaration
Public MustOverride Function CanExecute( _
ByVal As Object _
) As Boolean
'Usage
Dim instance As ActionBase
Dim parameter As Object
Dim value As Boolean
value = instance.CanExecute(parameter)
public abstract bool CanExecute(
object
)
Parameters
- parameter
-
Data used by the action. If the action does not require data to be passed, this object can be set to null.
Return Value
true
if this action can be executed; otherwise, false
.
See Also