ItemProperties.Add(String, OlUserPropertyType, Object, Object) 方法

定义

ItemProperties 集合中添加一个 ItemProperty 对象。

public Microsoft.Office.Interop.Outlook.ItemProperty Add (string Name, Microsoft.Office.Interop.Outlook.OlUserPropertyType Type, object AddToFolderFields, object DisplayFormat);
Public Function Add (Name As String, Type As OlUserPropertyType, Optional AddToFolderFields As Object, Optional DisplayFormat As Object) As ItemProperty

参数

Name
String

新项目属性对象的名称。

Type
OlUserPropertyType

新的 ItemProperty 的类型。

AddToFolderFields
Object

确定是否将项目属性添加到文件夹字段。

DisplayFormat
Object

确定字段在给定文件夹中的显示格式。

返回

注解

可以创建枚举 OlUserPropertyType 定义的类型的属性,但以下类型除外: olEnumerationolOutlookInternalolSmartFrom

适用于