Rediger

Del via


_Application.CreateItem(OlItemType) Method

Definition

Creates and returns a new Microsoft Outlook item.

public:
 System::Object ^ CreateItem(Microsoft::Office::Interop::Outlook::OlItemType ItemType);
public object CreateItem (Microsoft.Office.Interop.Outlook.OlItemType ItemType);
Public Function CreateItem (ItemType As OlItemType) As Object

Parameters

ItemType
OlItemType

The Outlook item type for the new item.

Returns

An Object value that represents the new Outlook item.

Remarks

The CreateItem method can only create default Outlook items. To create new items using a custom form, use the Add(Object) method on the Items collection.

Applies to