Share via


Using the Managed Exchange TreeView Control Programmatically

Topic Last Modified: 2009-07-24

The Managed Exchange TreeView Control can be used in Windows Forms applications that are running on Microsoft Exchange Server 2003, Microsoft Exchange Server 2007, or client computers. By using the ExchangeTreeViewControl properties and methods, you can add and remove roots to the TreeView control that correspond to folder hierarchies in the Exchange store. Important information is returned by the TreeView control class through the ControlError event, the ControlGeneratedError event, and the Selection event. This information can be dealt with programmatically by event handlers in the consuming application.

Through the user interface of the TreeView control, you can copy, move, rename, and delete folders in the Exchange store.

For an example of how the Managed Exchange TreeView Control can be used in an application, see the Managed Exchange TreeView Control Sample Application.

Managed ExchangeTreeViewControl Class Reference

The following table lists the objects and interfaces that are used to program the Managed Exchange TreeView Control.

API Elements Description

ExchangeTreeViewControl class

Contains properties and methods that can be used to create, rename, move, and copy folders in the Exchange store.

ControlEventArgs Class class

Encapsulates the low-priority error information that is passed back to the application by the ExchangeTreeViewControl class ControlError event.

ControlGeneratedEventArgs Class class

Encapsulates the high-priority error information that is passed back to the application by the ExchangeTreeViewControl class ControlGeneratedError event.

SelectionEventArgs Class class

Encapsulates the selection event information that is passed back to the application by the ExchangeTreeViewControl class SelectionEventArgs event.

LocalizableErrors Enumeration enumeration

When ExchangeTreeViewControl class ControlError event is raised, the type of error is passed back to the application as one of these enumeration values.