Aspose::Email::Clients::ICommand Class Referenceabstract

Defines a command. More...

Inherits IDisposable.

Public Member Functions

virtual bool get_CanExecute ()=0
 Defines the operator that determines whether the command can execute in its current state. More...
 
virtual System::SharedPtr< ICommandExecute ()=0
 Defines the method to be called when the command is invoked. More...
 

Public Attributes

System::EventHandler CanExecuteChanged
 Occurs when changes occur that affect whether or not the command should execute. More...
 

Detailed Description

Defines a command.

Member Function Documentation

◆ Execute()

virtual System::SharedPtr<ICommand> Aspose::Email::Clients::ICommand::Execute ( )
pure virtual

Defines the method to be called when the command is invoked.

Returns
Returns next command to execute. By default returns itself.

◆ get_CanExecute()

virtual bool Aspose::Email::Clients::ICommand::get_CanExecute ( )
pure virtual

Defines the operator that determines whether the command can execute in its current state.

Member Data Documentation

◆ CanExecuteChanged

System::EventHandler Aspose::Email::Clients::ICommand::CanExecuteChanged

Occurs when changes occur that affect whether or not the command should execute.