Skip to Content
Microsoft® Visual Studio® 2010 Unleashed
book

Microsoft® Visual Studio® 2010 Unleashed

by Mike Snell, Lars Powers
August 2010
Intermediate to advanced
1224 pages
34h 17m
English
Sams
Content preview from Microsoft® Visual Studio® 2010 Unleashed

The Structure of an Add-in

The first thing to notice is that the Connect class inherits from two different interfaces: IDTCommandTarget and IDTExtensibility2.

public class Connect : IDTExtensibility2, IDTCommandTarget

The IDTCommandTarget interface provides the functionality necessary to expose the add-in via a command bar. The code to inherit from this interface was added by the wizard because the Yes, Create a Tools Menu Item box was checked on page 4 of the add-in wizard.

The IDTExtensibility2 interface provides the eventing glue for add-ins. It is responsible for all the events that constitute the life span of an add-in.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Visual Studio® 2012 Unleashed, Second Edition

Microsoft® Visual Studio® 2012 Unleashed, Second Edition

Mike Snell, Lars Powers
Professional Visual Studio® 2008

Professional Visual Studio® 2008

Nick Randolph, David Gardner
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9780132121057Purchase book