CompositeCommand Members

Include Protected Members
Include Inherited Members

The CompositeCommand type exposes the following members.

Constructors

  Name Description
Public method CompositeCommand()
Initializes a new instance of CompositeCommand.
Public method CompositeCommand(Boolean)
Initializes a new instance of CompositeCommand.

Methods

  Name Description
Public method CanExecute
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).
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method Execute
Forwards Execute(Object) to the registered commands.
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method OnCanExecuteChanged
Raises CanExecuteChanged on the UI thread so every command invoker can requery CanExecute(Object) to check if the CompositeCommand can execute.
Public method RegisterCommand
Adds a command to the collection and signs up for the CanExecuteChanged event of it.
Protected method ShouldExecute
Evaluates if a command should execute.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public method UnregisterCommand
Removes a command from the collection and removes itself from the CanExecuteChanged event of it.

Properties

  Name Description
Public property RegisteredCommands
Gets the list of all the registered commands.

Events

  Name Description
Public event CanExecuteChanged
Occurs when changes occur that affect whether or not the command should execute.

See Also

CompositeCommand Class

Microsoft.Practices.Prism.Commands Namespace