_PropertyAccessor.DeleteProperty Method
Deletes the property specified by SchemaName.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Sub DeleteProperty ( _
SchemaName As String _
)
'Usage
Dim instance As _PropertyAccessor
Dim SchemaName As String
instance.DeleteProperty(SchemaName)
[DispIdAttribute()]
void DeleteProperty(
string SchemaName
)
Parameters
SchemaName
Type: System.StringThe name of the property that is to be deleted for the parent object of the PropertyAccessor object. The property is referenced by namespace. For more information, see Referencing Properties by Namespace.
Remarks
The caller must have the permission to delete properties. The DeleteProperty method deletes only custom properties; it does not delete any Outlook built-in property or any MAPI property. It does not delete custom properties of the DocumentItem object.