共用方式為


_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

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.

See Also

Reference

_PropertyAccessor Interface

_PropertyAccessor Members

Microsoft.Office.Interop.Outlook Namespace