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 Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (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.
| |
| Save(String) |
Saves the attachment data to the specified full file path.
| |
| ToString()()() | (Inherited from Object.) |
| Object | |
| Attachment | |