Represents an individual attachment.
| C# | Visual Basic |
public sealed class Attachment : IDisposable
Public NotInheritable Class Attachment _ Implements IDisposable
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| Attachment(String) |
This default constructor creates an attachment based on the specified fileName.
The file should exist until the message has been sent or saved.
| |
| AttachmentData |
Returns a stream used to access the attachment data.
| |
| Dispose()()()() |
Releases all resources used by the Attachment.
| |
| DownloadState |
Returns the download state of the attachment.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an Attachment to attempt to free resources and perform other cleanup operations before the Attachment is reclaimed by garbage collection.
(Overrides Object.Finalize()()()().) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Length |
Returns the length of the file in bytes.
| |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Name |
Gets or sets the name of the attachment.
| |
| Properties |
Gets the MailPropertySet.
This object is used for accessing mail item properties.
| |
| RemoteDownload()()()() |
Marks an attachment for remote download.
| |
| Save(String) |
Saves the attachment data to the specified full file path.
| |
| ToString()()()() | (Inherited from Object.) |
| Object | |
| Attachment | |