PropertyAccessor.DeleteProperties Method

Outlook Developer Reference

Deletes the properties specified in the array

SchemaNames

.

Version Information
 Version Added:  Outlook 2007

Syntax

expression.DeleteProperties(SchemaNames)

expression   A variable that represents a PropertyAccessor object.

Parameters

Name Required/Optional Data Type Description
SchemaNames Required Variant An array that contains the names of the properties that are to be deleted for the parent object of the PropertyAccessor object. These properties are referenced by namespace. For more information, see Referencing Properties by Namespace.

Return Value
A Variant that is Null (Nothing in VBA) if the operation is successful, or is an array of Err objects if an error occurs. If the return value is an array, the size of this array is the same as that of the SchemaNames array. An Err value in the array is mapped to the error result of deleting the corresponding property in the SchemaNames parameter.

Remarks

The caller must have the permission to delete properties. The DeleteProperties method only deletes custom properties that exist. It does not delete any Outlook built-in property or any MAPI property. It does not delete custom properties of the DocumentItem object.

See Also