CompositeCommand.ShouldExecute Method

Evaluates if a command should execute.

Namespace:  Microsoft.Practices.Prism.Commands
Assembly:  Microsoft.Practices.Prism (in Microsoft.Practices.Prism.dll)

Syntax

protected virtual bool ShouldExecute(
    ICommand command
)
'Declaration
Protected Overridable Function ShouldExecute ( _
    command As ICommand _
) As Boolean

Parameters

Return Value

A Boolean value indicating whether the command should be used when evaluating CanExecute(Object) and Execute(Object).

Remarks

If this command is set to monitor command activity, and command implements the IActiveAware interface, this method will return falsefalse (False in Visual Basic) if the command's IsActive property is falsefalse (False in Visual Basic); otherwise it always returns truetrue (True in Visual Basic).

See Also

CompositeCommand Class

Microsoft.Practices.Prism.Commands Namespace