NameSpaceEvents_Event.OptionsPagesAdd Event

Occurs whenever the Properties dialog box for a folder is opened.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
Event OptionsPagesAdd As NameSpaceEvents_OptionsPagesAddEventHandler
'Usage
Dim instance As NameSpaceEvents_Event
Dim handler As NameSpaceEvents_OptionsPagesAddEventHandler

AddHandler instance.OptionsPagesAdd, handler
event NameSpaceEvents_OptionsPagesAddEventHandler OptionsPagesAdd

Remarks

You can open the Properties dialog box for a folder by right-clicking the folder and selecting Properties.

Your program handles this event to add a custom property page. The property page will be added to Properties dialog box of the specified folder. When the event fires, the PropertyPages collection object identified by Pages contains the property pages that have been added prior to the event handler being called. To add your property page to the collection, use the Add method of the PropertyPages collection before exiting the event handler.

See Also

Reference

NameSpaceEvents_Event Interface

NameSpaceEvents_Event Members

Microsoft.Office.Interop.Outlook Namespace

Microsoft.Office.Interop.Outlook.NameSpaceEvents_OptionsPagesAddEventHandler