AttachmentCollection 类

定义

定义项目的附件集合。

public ref class AttachmentCollection sealed : Microsoft::Exchange::WebServices::Data::ComplexPropertyCollection<Microsoft::Exchange::WebServices::Data::Attachment ^>
public sealed class AttachmentCollection : Microsoft.Exchange.WebServices.Data.ComplexPropertyCollection<Microsoft.Exchange.WebServices.Data.Attachment>
Public NotInheritable Class AttachmentCollection
Inherits ComplexPropertyCollection(Of Attachment)
继承

属性

Count

获取集合中属性的总数。

(继承自 ComplexPropertyCollection<TComplexProperty>)
Item[Int32]

获取指定索引处的属性。

(继承自 ComplexPropertyCollection<TComplexProperty>)

方法

AddFileAttachment(String, Byte[])

将文件附件添加到包含该文件的集合。

AddFileAttachment(String, Stream)

使用包含文件的数据流将文件附件添加到集合。

AddFileAttachment(String, String)

将文件附件添加到集合。

AddFileAttachment(String)

将文件附件添加到集合。

AddItemAttachment<TItem>()

将项附件添加到集合。

Clear()

从集合中删除所有附件。

Contains(TComplexProperty)

确定特定属性是否在集合中。

(继承自 ComplexPropertyCollection<TComplexProperty>)
GetEnumerator()

获取循环访问集合元素的枚举器。

(继承自 ComplexPropertyCollection<TComplexProperty>)
IndexOf(TComplexProperty)

搜索特定属性并在集合中返回其从零开始的索引。

(继承自 ComplexPropertyCollection<TComplexProperty>)
Remove(Attachment)

从集合中删除指定的附件。

RemoveAt(Int32)

删除集合中指定索引 (位置) 的附件。

显式接口实现

IEnumerable.GetEnumerator()

获取循环访问集合元素的枚举器。 方法IEnumerable.GetEnumerator()适用于从 Exchange Server 2013 开始面向 Exchange Online 和 Exchange 版本的客户端。

(继承自 ComplexPropertyCollection<TComplexProperty>)

适用于