C# Class Thinktecture.Tools.Web.Services.ContractFirst.VsAddIn

Inheritance: IDTExtensibility2, IDTCommandTarget
Afficher le fichier Open project: WSCF/WSCF Class Usage Examples

Private Properties

Свойство Type Description
CreateAddInMenus void
FindCommandBarByName CommandBar
GetCommandName string
GetToolsCommandBar CommandBar
OnSelectionChanged void
RemoveCommand void
RemoveCommandBarPopup void
ToggleSubMenuVisibility void

Méthodes publiques

Méthode Description
Exec ( string commandName, vsCommandExecOption executeOption, object &varIn, object &varOut, bool &handled ) : void

Implements the Exec method of the IDTCommandTarget interface. This is called when the command is invoked.

OnAddInsUpdate ( Array &custom ) : void

Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. Receives notification that the collection of Add-ins has changed.

OnBeginShutdown ( Array &custom ) : void

Implements the OnBeginShutdown method of the IDTExtensibility2 interface. Receives notification that the host application is being unloaded.

OnConnection ( object application, ext_ConnectMode connectMode, object addInInst, Array &custom ) : void

Implements the OnConnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being loaded.

OnDisconnection ( ext_DisconnectMode disconnectMode, Array &custom ) : void

Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.

OnStartupComplete ( Array &custom ) : void

Implements the OnStartupComplete method of the IDTExtensibility2 interface. Receives notification that the host application has completed loading.

QueryStatus ( string commandName, vsCommandStatusTextWanted neededText, vsCommandStatus &status, object &commandText ) : void

Implements the QueryStatus method of the IDTCommandTarget interface. This is called when the command's availability is updated

VsAddIn ( ) : System

Implements the constructor for the Add-in object. Place your initialization code within this method.

Private Methods

Méthode Description
CreateAddInMenus ( VsAddIn addin, ext_ConnectMode connectMode ) : void
FindCommandBarByName ( CommandBars commandBars, string name ) : CommandBar
GetCommandName ( string command ) : string
GetToolsCommandBar ( CommandBars commandBars ) : CommandBar
OnSelectionChanged ( ) : void
RemoveCommand ( string command ) : void
RemoveCommandBarPopup ( CommandBarPopup commandBarPopup ) : void
ToggleSubMenuVisibility ( bool visible ) : void

Method Details

Exec() public méthode

Implements the Exec method of the IDTCommandTarget interface. This is called when the command is invoked.
public Exec ( string commandName, vsCommandExecOption executeOption, object &varIn, object &varOut, bool &handled ) : void
commandName string
executeOption vsCommandExecOption
varIn object
varOut object
handled bool
Résultat void

OnAddInsUpdate() public méthode

Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. Receives notification that the collection of Add-ins has changed.
public OnAddInsUpdate ( Array &custom ) : void
custom System.Array
Résultat void

OnBeginShutdown() public méthode

Implements the OnBeginShutdown method of the IDTExtensibility2 interface. Receives notification that the host application is being unloaded.
public OnBeginShutdown ( Array &custom ) : void
custom System.Array
Résultat void

OnConnection() public méthode

Implements the OnConnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being loaded.
public OnConnection ( object application, ext_ConnectMode connectMode, object addInInst, Array &custom ) : void
application object
connectMode ext_ConnectMode
addInInst object
custom System.Array
Résultat void

OnDisconnection() public méthode

Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.
public OnDisconnection ( ext_DisconnectMode disconnectMode, Array &custom ) : void
disconnectMode ext_DisconnectMode
custom System.Array
Résultat void

OnStartupComplete() public méthode

Implements the OnStartupComplete method of the IDTExtensibility2 interface. Receives notification that the host application has completed loading.
public OnStartupComplete ( Array &custom ) : void
custom System.Array
Résultat void

QueryStatus() public méthode

Implements the QueryStatus method of the IDTCommandTarget interface. This is called when the command's availability is updated
public QueryStatus ( string commandName, vsCommandStatusTextWanted neededText, vsCommandStatus &status, object &commandText ) : void
commandName string
neededText vsCommandStatusTextWanted
status vsCommandStatus
commandText object
Résultat void

VsAddIn() public méthode

Implements the constructor for the Add-in object. Place your initialization code within this method.
public VsAddIn ( ) : System
Résultat System