This documentation is archived and is not being maintained.
AttachmentBase Class
Visual Studio 2010
Base class that represents an email attachment. Classes Attachment, AlternateView, and LinkedResource derive from this class.
System::Object
System.Net.Mail::AttachmentBase
System.Net.Mail::AlternateView
System.Net.Mail::Attachment
System.Net.Mail::LinkedResource
System.Net.Mail::AttachmentBase
System.Net.Mail::AlternateView
System.Net.Mail::Attachment
System.Net.Mail::LinkedResource
Assembly: System (in System.dll)
The AttachmentBase type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AttachmentBase(Stream) | Instantiates an AttachmentBase with the specified Stream. |
![]() | AttachmentBase(String) | Instantiates an AttachmentBase with the specified file name. |
![]() | AttachmentBase(Stream, ContentType) | Instantiates an AttachmentBase with the specified Stream and ContentType. |
![]() | AttachmentBase(Stream, String) | Instantiates an AttachmentBase with the specified Stream and media type. |
![]() | AttachmentBase(String, ContentType) | Instantiates an AttachmentBase with the specified file name and content type. |
![]() | AttachmentBase(String, String) | Instantiates an AttachmentBase with the specified file name and media type. |
| Name | Description | |
|---|---|---|
![]() | ContentId | Gets or sets the MIME content ID for this attachment. |
![]() | ContentStream | Gets the content stream of this attachment. |
![]() | ContentType | Gets the content type of this attachment. |
![]() | TransferEncoding | Gets or sets the encoding of this attachment. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | Releases the resources used by the AttachmentBase. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the AttachmentBase and optionally releases the managed resources. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:


