共用方式為


_Application.CreateItem Method

Creates and returns a new Microsoft Outlook item.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function CreateItem ( _
    ItemType As OlItemType _
) As Object
'Usage
Dim instance As _Application
Dim ItemType As OlItemType
Dim returnValue As Object

returnValue = instance.CreateItem(ItemType)
[DispIdAttribute()]
Object CreateItem(
    OlItemType ItemType
)

Parameters

Return Value

Type: System.Object
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 method on the Items collection.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Import Appointment XML Data into Outlook Appointment Objects