C# 클래스 Tp.Integration.Ide.VisualStudio.Connect

The object for implementing an Add-in.
상속: IDTExtensibility2, IDTCommandTarget
파일 보기 프로젝트 열기: TargetProcess/Tp.Integration.Ide.VisualStudio 1 사용 예제들

공개 메소드들

메소드 설명
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

Receives notification when the collection of Add-ins has changed.

OnBeginShutdown ( Array &custom ) : void

Receives notification that the host application is being unloaded.

OnConnection ( object application, ext_ConnectMode connectMode, object addIn, 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

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.

비공개 메소드들

메소드 설명
CreateCommand ( CommandBar commandBar, string name, string text, string tooltip ) : void

Adds named command to the TargetProcess popup menu.

CreateCommands ( ) : void

Creates TargetProcess popup menu with commands.

CreateController ( ) : Controller

Creates controller behind the To Do list view.

CreateToolWindow ( ) : void

Create tool window with the To Do list.

CreateTraceListener ( ) : TraceListener

Creates TraceListener which appends to Output Window.

DoExec ( string commandName, vsCommandExecOption executeOption ) : bool
DoQueryStatus ( string commandName, vsCommandStatusTextWanted neededText ) : vsCommandStatus
FindMenuBarControl ( CommandBar menuBarCommandBar, string controlName ) : CommandBarPopup
OnConnectionStateChange ( object sender, ConnectionStateEventArgs e ) : void

Receives notification that the connection state has changed.

메소드 상세

Exec() 공개 메소드

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 /// The name of the command to execute. ///
executeOption vsCommandExecOption /// Describes how the command should be run. ///
varIn object /// Parameters passed from the caller to the command handler. ///
varOut object /// Parameters passed from the command handler to the caller. ///
handled bool /// Informs the caller if the command was handled or not. ///
리턴 void

OnAddInsUpdate() 공개 메소드

Receives notification when the collection of Add-ins has changed.
public OnAddInsUpdate ( Array &custom ) : void
custom System.Array /// Array of parameters that are host application specific. ///
리턴 void

OnBeginShutdown() 공개 메소드

Receives notification that the host application is being unloaded.
public OnBeginShutdown ( Array &custom ) : void
custom System.Array /// Array of parameters that are host application specific. ///
리턴 void

OnConnection() 공개 메소드

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 addIn, Array &custom ) : void
application object /// Root object of the host application. ///
connectMode ext_ConnectMode /// Describes how the Add-in is being loaded. ///
addIn object /// Object representing this Add-in. ///
custom System.Array /// Array of parameters that are host application specific. ///
리턴 void

OnDisconnection() 공개 메소드

Receives notification that the Add-in is being unloaded.
public OnDisconnection ( ext_DisconnectMode disconnectMode, Array &custom ) : void
disconnectMode ext_DisconnectMode /// Describes how the Add-in is being unloaded. ///
custom System.Array /// Array of parameters that are host application specific. ///
리턴 void

OnStartupComplete() 공개 메소드

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 /// Array of parameters that are host application specific. ///
리턴 void

QueryStatus() 공개 메소드

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 /// The name of the command to determine state for. ///
neededText vsCommandStatusTextWanted /// Text that is needed for the command. ///
status vsCommandStatus /// The state of the command in the user interface. ///
commandText object /// Text requested by the neededText parameter. ///
리턴 void