DelegateCommand<T>.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)

function canExecute(parameter);


Type: T
Data used by the command. If the command does not require data to be passed, this object can be set to nulla null reference (Nothing in Visual Basic).

Return Value

truetrue (True in Visual Basic) if this command can be executed; otherwise, falsefalse (False in Visual Basic).