PropertyAccessor.DeleteProperties method (Outlook)
Deletes the properties specified in the array SchemaNames.
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.