Visual Studio Development Bookmark and Share   
 index > Visual Studio Extensibility > DDEX data connection refresh
 

DDEX data connection refresh

We have a DDEX data provider and would like to do special handling for refresh on the data connection.  Is there a way to subscribe to the refresh event?

tuoihong  Friday, October 09, 2009 9:04 PM

Hello,

Do you want the Refresh command event handler? it seems that both of DataConnection Events are not responsible for it.
In Visual Studio Extensibility, we could use the DTE.Events to get the Refresh command event with its GUID and command ID, and then add our subscription to EnvDTE.CommandEvents.BeforeExecute delegate.
About how to get the command set and command ID of a specific command, please refer to this article:
Using EnableVSIPLogging to identify menus and commands with VS 2005 + SP1

And you would like to take a look this similar thread: http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/80d86c9c-5f4a-43e6-a83e-905fe08fd016

Hope that helps.

Sincerely,
Wesley


Please mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Wesley Yao  Monday, October 12, 2009 9:18 AM

Hello,

Do you want the Refresh command event handler? it seems that both of DataConnection Events are not responsible for it.
In Visual Studio Extensibility, we could use the DTE.Events to get the Refresh command event with its GUID and command ID, and then add our subscription to EnvDTE.CommandEvents.BeforeExecute delegate.
About how to get the command set and command ID of a specific command, please refer to this article:
Using EnableVSIPLogging to identify menus and commands with VS 2005 + SP1

And you would like to take a look this similar thread: http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/80d86c9c-5f4a-43e6-a83e-905fe08fd016

Hope that helps.

Sincerely,
Wesley


Please mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Wesley Yao  Monday, October 12, 2009 9:18 AM

You can use google to search for other answers

Custom Search

More Threads

• DSL: How to reference models from different languages
• how can macro wait for the finish of executecommand?
• BabelLex Sample for Managed Babel
• Old version of my DLL keeps being loaded
• Creating a custom editor/designer without VsPackage ?
• AddNamedCommand2 bitmaps
• VS Shell: Custom project lacks AddReference command
• Bugs in DIS (DSL Integration Service)
• Problem getting command bar with EnableVSIPLogging
• Debugger extension