Share via


NameSpace.OptionsPagesAdd Event

Outlook Developer Reference

Occurs whenever the Options dialog box (on the Tools menu) or a folder Properties dialog box is opened.

Syntax

expression.OptionsPagesAdd(Pages, Folder)

expression   A variable that represents a NameSpace object.

Parameters

Name Required/Optional Data Type Description
Pages Required PropertyPages The collection of property pages that have been added to the dialog box. This collection includes only custom property pages. It does not include standard Microsoft Outlook property pages.
Folder Required Folder This argument is only used with the Folder object. The Folder object for which the Properties dialog box is being opened.

Remarks

This event is not available in Microsoft Visual Basic Scripting Edition (VBScript).

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