命名空间 OptionsPagesAdd 事件 (Outlook)NameSpace.OptionsPagesAdd event (Outlook)

每当打开文件夹的 "属性" 对话框时发生。Occurs whenever the Properties dialog box for a folder is opened.

语法Syntax

expressionexpression. OptionsPagesAdd( _Pages_ , _Folder_ )

_表达式_一个代表NameSpace对象的变量。expression A variable that represents a NameSpace object.

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
PagesPages 必需Required PropertyPagesPropertyPages 已添加到对话框中的属性页的集合。The collection of property pages that have been added to the dialog box. 此集合仅包含自定义属性页。This collection includes only custom property pages. 它不包括标准的 Microsoft Outlook 属性页。It does not include standard Microsoft Outlook property pages.
FolderFolder 必需Required FolderFolder 此参数仅用于Folder对象。This argument is only used with the Folder object. 属性对话框中打开的 文件夹 对象。The Folder object for which the Properties dialog box is being opened.

说明Remarks

该事件在 Microsoft Visual Basic Scripting Edition (VBScript) 中不可用。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. 触发该事件时, 由_页面_标识的PropertyPages集合对象包含在调用事件处理程序之前添加的属性页。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. 若要将属性页添加到集合中, 请先使用PropertyPages集合的**add** 方法, 然后再退出事件处理程序。To add your property page to the collection, use the Add method of the PropertyPages collection before exiting the event handler.

另请参阅See also

命名空间对象NameSpace Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.