Defines the method that determines whether the action can execute in its current state.
'Declaration
Public MustOverride Function CanExecute( _
ByVal As System.Object _
) As System.Boolean
'Usage
Dim instance As ActionBase
Dim parameter As System.Object
Dim value As System.Boolean
value = instance.CanExecute(parameter)
public abstract System.bool CanExecute(
System.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
.