How Do I... in Outlook 2010
This section contains procedural tasks topics and code examples in Visual Basic and C# that demonstrate how to perform some common tasks in Microsoft Outlook.
To run these code examples, you must have installed Microsoft Outlook 2010, the Outlook 2010 Primary Interop Assembly (PIA), and Microsoft Visual Studio 2008 or Microsoft Visual Studio 2010.
The code examples in this section do not require that you have installed Microsoft Office development tools in Microsoft Visual Studio 2010. However, you can refer to the Office Development with Visual Studio portal on MSDN for information about using Office development tools in Visual Studio 2010, and refer to Outlook Solutions for some basic how-to tasks written in managed code.
Code examples in this section range from the beginner to the intermediate levels, and some of them are adapted from the book Programming Applications for Microsoft Office Outlook 2007.
The Microsoft Office Developer Documentation team welcomes your task ideas and code samples. If we use your code samples in Outlook content, we will recognize your work with a byline and a link to your Web site. For more information, contact us at docthis@microsoft.com.
How to: Display in the Select Names Dialog Box the Address Book Corresponding to a Contacts Folder
How to: Get the Global Address List or a Set of Address Lists for a Store
How to: Create an Appointment That Starts in the Pacific Time Zone and Ends in the Eastern Time Zone
How to: Specify Different Recipient Types for an Appointment Item
How to: Create a Recurring Appointment by Using the Default Recurrence Pattern
How to: Create a Recurring Appointment That Has a Weekly Pattern
How to: Create an Annual Recurring Appointment That Uses a YearNth Pattern
How to: Find a Specific Appointment in a Recurring Appointment Series
How to: Create an Exception Appointment in a Recurring Appointment Series
How to: Import Appointment XML Data into Outlook Appointment Objects
How to: Limit the Size of an Attachment to an Outlook Email Message
How to: Programmatically Remove Security Level 2 Attachments from Messages and Save Them to Disk
How to: Get Information About All Distribution Lists of Which the Current User is a Member
How to: Get Availability Information for an Exchange User's Manager
How to: Get Information About Direct Reports of the Current User's Manager
Sample Tasks Using Outlook Events
How to: Access Solution-Specific Data Stored as a Hidden Message in a Folder
How to: Ensure that Custom Item Properties Are Supported in Folder-Level Queries
How to: Create a Meeting Request, Add Recipients, and Specify a Location
How to: Find the Appointment Item Associated with a Meeting Request
How to: Display the Select Names Dialog Box to Resolve Recipients
How to: Use the Select Names Dialog Box to Obtain and Assign Recipients to an Appointment
How to: Create a Rule to File Mail Items from a Manager and Flag Them for Follow-Up
How to: Create a Rule to Assign Categories to Mail Items Based on Multiple Words in the Subject
How to: Use SetColumns to Efficiently Enumerate Items in a Folder
How to: Use Arrays to Efficiently Enumerate Items in a Folder
How to: Enumerate Items in the Inbox Based on the Last Modification Time
How to: Filter and Display Inbox Items Modified in the Last Month
How to: Filter and Display Multivalued Properties When Enumerating Items in a Folder
How to: Filter and Display Computed Properties When Enumerating Items in a Folder
How to: Use Instant Search to Search All Folders and All Stores for a Phrase in the Subject
How to: Search for a Phrase in the Body of Items in a Folder
How to: Search Attachments of Items in a Folder for an Exact Phrase
How to: Filter Recurring Appointments and Search for a String in the Subject