Outlook Object Model Overview

There are several ways to learn about the Outlook object model when you are using VBA. You can look at the objects in the Object Browser of the Visual Basic Editor, and you can use IntelliSense within the VBE. You can also use the Object Browser and IntelliSense (along with other advanced functionality) in Visual Studio when creating Outlook solutions in VSTO. (These features are described in more detail in Chapter 2.) As mentioned earlier, you must install the VSTOIntelliSenseXML.msi file in order to have the rich IntelliSense functionality in Visual Studio for your Outlook solutions. Remember, too, that Help files are available in Outlook and VSTO.

VSTO does not add any functionality to the Outlook object model. VSTO does not create host items or host controls for Outlook solutions (as it does with Word and Excel), because these controls are document-specific. Instead, VSTO provides a thin wrapper around the Outlook Application object so that you can access its members from the ThisApplication class using the Me keyword. Note that the add-in model introduced in VSTO 2005 SE has some architectural differences and does not wrap the Application object. You'll learn more about this in Chapter 14.

As noted in the Preface, we assume that you are a VBA developer who is already familiar with the Office object models and are interested in learning how you can transfer this knowledge to creating solutions with VSTO. Because VSTO doesn't enhance the object model in Outlook as it does in Word and Excel, this section only briefly describes some of the objects in the Outlook object model.

0 0

Post a comment