LinkedResource 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示电子邮件附件中嵌入的外部资源,如 HTML 附件中的图像。
public ref class LinkedResource : System::Net::Mail::AttachmentBasepublic class LinkedResource : System.Net.Mail.AttachmentBasetype LinkedResource = class
    inherit AttachmentBasePublic Class LinkedResource
Inherits AttachmentBase- 继承
构造函数
| LinkedResource(Stream) | 使用提供的 LinkedResource 初始化 Stream 的新实例。 | 
| LinkedResource(Stream, ContentType) | 用 LinkedResource 和 Stream 提供的值初始化 ContentType 的新实例。 | 
| LinkedResource(Stream, String) | 使用指定的 LinkedResource 和媒体类型初始化 Stream 的新实例。 | 
| LinkedResource(String) | 使用指定的文件名初始化 LinkedResource 的新实例。 | 
| LinkedResource(String, ContentType) | 用指定的文件名和内容类型初始化 LinkedResource 的新实例。 | 
| LinkedResource(String, String) | 用指定的文件名和媒体类型初始化 LinkedResource 的新实例。 | 
属性
| ContentId | 获取或设置此附件的 MIME 内容 ID。(继承自 AttachmentBase) | 
| ContentLink | 获取或设置资源必须匹配的 URI。 | 
| ContentStream | 获取此附件的内容流。(继承自 AttachmentBase) | 
| ContentType | 获取此附件的内容类型。(继承自 AttachmentBase) | 
| TransferEncoding | 获取或设置此附件的编码。(继承自 AttachmentBase) | 
方法
| CreateLinkedResourceFromString(String) | 用作为嵌入资源包含在电子邮件附件中的字符串创建 LinkedResource 对象。 默认媒体类型是纯文本,默认内容类型是 ASCII。 | 
| CreateLinkedResourceFromString(String, ContentType) | 用作为嵌入资源包含在电子邮件附件中的字符串、指定的内容类型、纯文本媒体类型创建 LinkedResource 对象。 | 
| CreateLinkedResourceFromString(String, Encoding, String) | 用作为嵌入资源包含在电子邮件附件中的字符串、指定的内容类型和媒体类型创建 LinkedResource 对象。 | 
| Dispose() | 释放由 AttachmentBase 占用的资源。(继承自 AttachmentBase) | 
| Dispose(Boolean) | 释放由 AttachmentBase 占用的非托管资源,还可以另外再释放托管资源。(继承自 AttachmentBase) | 
| Equals(Object) | 确定指定对象是否等于当前对象。(继承自 Object) | 
| GetHashCode() | 作为默认哈希函数。(继承自 Object) | 
| GetType() | 获取当前实例的 Type。(继承自 Object) | 
| MemberwiseClone() | 创建当前 Object 的浅表副本。(继承自 Object) | 
| ToString() | 返回表示当前对象的字符串。(继承自 Object) |