Поделиться через


NameSpace.OptionsPagesAdd Event (Outlook)

Occurs whenever the Properties dialog box for a folder 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).

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

Concepts

NameSpace Object

NameSpace Object Members