Export (0) Print
Expand All

DocumentItem Interface

Represents any document other than an Outlook item as an item in an Outlook folder.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

'Declaration
<GuidAttribute("00063020-0000-0000-C000-000000000046")> _
<CoClassAttribute(GetType(DocumentItemClass))> _
PublicInterfaceDocumentItem _
	Inherits_DocumentItem, ItemEvents_10_Event
'Usage
DiminstanceAsDocumentItem

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _DocumentItem. For information about the event members of the COM object, see ItemEvents_10_Event.

A DocumentItem object is any document other than an Outlook item as an item in an Outlook folder. In common usage, this will be an Office document but may be any type of document or executable file.

Unlike other Microsoft Outlook objects, you cannot create this object.

NoteNote

When you try to programmatically add a user-defined property to a DocumentItem object, you receive the following error message: "Property is read-only." This is because the Outlook object model does not support this functionality.

Show:
© 2014 Microsoft