共用方式為


Attachment Interface

Represents a document or link to a document contained in an Outlook item.

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

Syntax

'Declaration
<GuidAttribute("00063007-0000-0000-C000-000000000046")> _
<TypeLibTypeAttribute()> _
Public Interface Attachment
'Usage
Dim instance As Attachment
[GuidAttribute("00063007-0000-0000-C000-000000000046")]
[TypeLibTypeAttribute()]
public interface Attachment

Remarks

Use Item (index), where index is the index number, to return a single Attachment object.

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

See Also

Reference

Attachment Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Attach a File to a Mail Item

How to: Attach an Outlook Contact Item to an Email Message

How to: Limit the Size of an Attachment to an Outlook Email Message

How to: Modify an Attachment of an Outlook Email Message

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