CompositeCommand.CanExecute Method

Forwards CanExecute(Object) to the registered commands and returns truetrue (True in Visual Basic) if all of the commands return truetrue (True in Visual Basic).

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

Syntax

public virtual bool CanExecute(
    Object parameter
)
'Declaration
Public Overridable Function CanExecute ( _
    parameter As Object _
) As Boolean

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 nulla null reference (Nothing in Visual Basic).

Return Value

truetrue (True in Visual Basic) if all of the commands return truetrue (True in Visual Basic); otherwise, falsefalse (False in Visual Basic).

Implements

ICommand.CanExecute(Object)

See Also

CompositeCommand Class

Microsoft.Practices.Prism.Commands Namespace