C# Class EditorConfig.VisualStudio.Integration.Commands.BaseCommand

The base implementation of a command.
Inheritance: Microsoft.VisualStudio.Shell.OleMenuCommand
Afficher le fichier Open project: editorconfig/editorconfig-visualstudio

Méthodes protégées

Méthode Description
BaseCommand ( EditorConfigPackage package, CommandID id ) : System

Initializes a new instance of the BaseCommand class.

OnBeforeQueryStatus ( ) : void

Called to update the current status of the command.

OnExecute ( ) : void

Called to execute the command.

Private Methods

Méthode Description
BaseCommand_BeforeQueryStatus ( object sender, EventArgs e ) : void

Handles the BeforeQueryStatus event of the BaseCommand control.

BaseCommand_Execute ( object sender, EventArgs e ) : void

Handles the Execute event of the BaseCommand control.

Method Details

BaseCommand() protected méthode

Initializes a new instance of the BaseCommand class.
protected BaseCommand ( EditorConfigPackage package, CommandID id ) : System
package EditorConfigPackage The hosting package.
id System.ComponentModel.Design.CommandID The id for the command.
Résultat System

OnBeforeQueryStatus() protected méthode

Called to update the current status of the command.
protected OnBeforeQueryStatus ( ) : void
Résultat void

OnExecute() protected abstract méthode

Called to execute the command.
protected abstract OnExecute ( ) : void
Résultat void