全部显示

UserProperties 对象

         
多个对象
UserProperties
多个对象

该对象包含 UserProperty 对象,代表 Outlook 项目的自定义属性。

使用 UserProperties 对象

使用 UserProperties 属性返回 Outlook 项目的 UserProperties 对象。

使用 Add 方法为项目新建 UserProperty 并添加到 UserProperties 对象中。Add 方法允许为新属性指定名称和类型。以下示例将名为“MyPropName”的自定义文本属性添加到 myItem 中。

Set myProp = myItem.UserProperties.Add("MyPropName", olText)

使用 UserProperties(index) 返回单个 UserProperty 对象。其中 index 是名称或索引号。

创建自定义属性时,将在包含项目的文件夹中添加字段(使用与属性相同的名称)。该字段可作为文件夹视图中的一列。