AttachmentBase 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示电子邮件附件的基类。 Attachment、AlternateView 和 LinkedResource 类从此类派生。
public ref class AttachmentBase abstract : IDisposable
public abstract class AttachmentBase : IDisposable
type AttachmentBase = class
interface IDisposable
Public MustInherit Class AttachmentBase
Implements IDisposable
- 继承
-
AttachmentBase
- 派生
- 实现
构造函数
| AttachmentBase(Stream) |
用指定的 AttachmentBase 实例化一个 Stream。 |
| AttachmentBase(Stream, ContentType) |
用指定的 AttachmentBase 和 Stream 实例化一个 ContentType。 |
| AttachmentBase(Stream, String) |
用指定的 AttachmentBase 和媒体类型实例化一个 Stream。 |
| AttachmentBase(String) |
用指定的文件名实例化一个 AttachmentBase。 |
| AttachmentBase(String, ContentType) |
用指定的文件名和内容类型实例化一个 AttachmentBase。 |
| AttachmentBase(String, String) |
用指定的文件名和媒体类型实例化一个 AttachmentBase。 |
属性
| ContentId |
获取或设置此附件的 MIME 内容 ID。 |
| ContentStream |
获取此附件的内容流。 |
| ContentType |
获取此附件的内容类型。 |
| TransferEncoding |
获取或设置此附件的编码。 |
方法
| Dispose() |
释放由 AttachmentBase 占用的资源。 |
| Dispose(Boolean) |
释放由 AttachmentBase 占用的非托管资源,还可以另外再释放托管资源。 |
| Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。 (继承自 Object) |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。 (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。 (继承自 Object) |