次の方法で共有


Attachments Interface

Contains a set of Attachment objects that represent the attachments in an Outlook item.

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

Syntax

'Declaration
<DefaultMemberAttribute("Item")> _
<GuidAttribute("0006303C-0000-0000-C000-000000000046")> _
<TypeLibTypeAttribute()> _
Public Interface Attachments _
    Inherits IEnumerable
'Usage
Dim instance As Attachments
[DefaultMemberAttribute("Item")]
[GuidAttribute("0006303C-0000-0000-C000-000000000046")]
[TypeLibTypeAttribute()]
public interface Attachments : IEnumerable

Remarks

Use the Item property to return the Attachments collection for any Outlook item (except notes).

Use the Add method to add an attachment to an item.

To ensure consistent results, always save an item before adding or removing objects in the Attachments collection of the item.

See Also

Reference

Attachments Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Programmatically Remove Security Level 2 Attachments from Messages and Save Them to Disk

How to: Create a Mail Item, Attach a Report, and Send the Mail Item to the User's Manager