C# Class Aurelia.DotNet.VSIX.Commands.GenerateAttribute

Command handler
Datei anzeigen Open project: aurelia/dotnet Class Usage Examples

Private Properties

Property Type Description
ExecuteAsync void
GenerateAttribute System
MenuItem_BeforeQueryStatus void

Public Methods

Method Description
InitializeAsync ( AsyncPackage package ) : System.Threading.Tasks.Task

Initializes the singleton instance of the command.

Private Methods

Method Description
ExecuteAsync ( object sender, EventArgs e ) : void

This function is the callback used to execute the command when the menu item is clicked. See the constructor to see how the menu item is associated with this function using OleMenuCommandService service and MenuCommand class.

GenerateAttribute ( AsyncPackage package, OleMenuCommandService commandService, DTE2 dte ) : System

Initializes a new instance of the GenerateAttribute class. Adds our command handlers for menu (commands must exist in the command table file)

MenuItem_BeforeQueryStatus ( object sender, EventArgs e ) : void

Method Details

InitializeAsync() public static method

Initializes the singleton instance of the command.
public static InitializeAsync ( AsyncPackage package ) : System.Threading.Tasks.Task
package AsyncPackage Owner package, not null.
return System.Threading.Tasks.Task