Düzenle

Aracılığıyla paylaş


_UserDefinedProperties.Add(String, OlUserPropertyType, Object, Object) Method

Definition

Creates a new UserDefinedProperty object and appends it to the collection.

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

Parameters

Name
String

The name of the new user-defined property.

Type
OlUserPropertyType

The type of the new user-defined property.

DisplayFormat
Object

The display format of the new user-defined property. This parameter can be set to a value from one of several different enumerations, determined by the property type specified in the Type parameter. For more information on how Type and DisplayFormat interact, see DisplayFormat.

Formula
Object

The formula used to calculate values for the new user-defined property. This parameter is ignored if the Type parameter is set to any value other than olCombination or olFormula.

Returns

A UserDefinedProperty object that represents the new user-defined property.

Remarks

You can create a property of a type that is defined by the OlUserPropertyType enumeration, except for the following types: olEnumeration, olOutlookInternal, and olSmartFrom.

Applies to