_Application.CreateItem(OlItemType) 方法

定义

创建并返回一个新的 Microsoft Outlook 项目。

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

参数

ItemType
OlItemType

新项 Outlook 项目类型。

返回

一个代表新 Outlook 项目的 Object 值。

注解

CreateItem 方法只能创建默认 Outlook 项目。 若要使用自定义窗体创建新项,请在集合上使用 Add(Object)Items 方法。

适用于