Export (0) Print
Expand All

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)

public:
bool CanExecute(
	T parameter
)

Parameters

parameter
Type: T
Data used by the command. If the command does not require data to be passed, this object can be set to nullptra 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).
Show:
© 2014 Microsoft