_PropertyAccessor.DeleteProperties Method
Deletes the properties specified in the array SchemaNames.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Function DeleteProperties ( _
ByRef SchemaNames As Object _
) As Object
'Usage
Dim instance As _PropertyAccessor
Dim SchemaNames As Object
Dim returnValue As Object
returnValue = instance.DeleteProperties(SchemaNames)
[DispIdAttribute()]
Object DeleteProperties(
ref Object SchemaNames
)
Parameters
SchemaNames
Type: System.ObjectAn 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
Type: System.Object
An Object that is Nothing (a null reference (Nothing in Visual Basic) in C#) 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.