AttachmentBase Class
Base class that represents an email attachment. Classes Attachment, AlternateView, and LinkedResource derive from this class.
Assembly: System (in System.dll)
System.Net.Mail.AttachmentBase
System.Net.Mail.AlternateView
System.Net.Mail.Attachment
System.Net.Mail.LinkedResource
| Name | Description | |
|---|---|---|
![]() | AttachmentBase(Stream) | Instantiates an AttachmentBase with the specified Stream. |
![]() | 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) | Instantiates an AttachmentBase with the specified file name. |
![]() | 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 the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


