Attachments 接口

定义

包含一组 Attachment 对象,这些对象代表 Outlook 项目中的附件。

public interface class Attachments : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("0006303C-0000-0000-C000-000000000046")]
public interface Attachments : System.Collections.IEnumerable
Public Interface Attachments
Implements IEnumerable
属性
实现

注解

Item[Object]使用 属性可返回除备注) 以外的任何 Outlook 项目的 Attachments 集合 (。

Add(Object, Object, Object, Object)使用 方法向项添加附件。

若要确保结果一致,总是在添加或移除项的 附件 集合中的对象之前保存项。

属性

Application

返回一个 Application 对象,该对象代表对象的父 Outlook 应用程序。 只读。

Class

返回一个 OlObjectClass 常量,指示对象的 类。 只读。

Count

返回一个 Integer (int in C# ) 值,该值指示指定集合中的对象计数。 只读。

Item[Object]

从集合中返回对象 Attachment

Parent

返回指定对象的 对象 的父级。 只读。

Session

返回 NameSpace 当前会话的 对象。 只读。

方法

Add(Object, Object, Object, Object)

在集合中 Attachments 创建新的附件。

Remove(Int32)

从集合中删除对象。

适用于