DelegateCommand<T>.ICommand.CanExecute Method

Defines the method that determines whether the command can execute in its current state.

Namespace:  Microsoft.Practices.Composite.Presentation.Commands
Assembly:  Microsoft.Practices.Composite.Presentation (in Microsoft.Practices.Composite.Presentation.dll)

Syntax

'Declaration
Private Function CanExecute ( _
    parameter As Object _
) As Boolean Implements ICommand.CanExecute
bool ICommand.CanExecute(
    Object parameter
)
private:
virtual bool CanExecute(
    Object^ parameter
) sealed = ICommand::CanExecute
JavaScript does not support explicit interface implementations.

Parameters

  • parameter
    Type: System.Object
    Data used by the command. If the command does not require data to be passed, this object can be set to null.

Return Value

true if this command can be executed; otherwise, false.

Implements

ICommand.CanExecute(Object)

See Also

DelegateCommand<T> Class

Microsoft.Practices.Composite.Presentation.Commands Namespace