AttachmentCollection AttachmentCollection AttachmentCollection Class

Definition

Defines an item's attachment collection.

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)
Inheritance

Methods

AddFileAttachment(String) AddFileAttachment(String) AddFileAttachment(String)

Adds a file attachment to the collection.

AddFileAttachment(String, Byte[]) AddFileAttachment(String, Byte[]) AddFileAttachment(String, Byte[])

Adds a file attachment to the collection that contains the file.

AddFileAttachment(String, Stream) AddFileAttachment(String, Stream) AddFileAttachment(String, Stream)

Adds a file attachment to the collection by using a data stream that contains the file.

AddFileAttachment(String, String) AddFileAttachment(String, String) AddFileAttachment(String, String)

Adds a file attachment to the collection.

AddItemAttachment<TItem>() AddItemAttachment<TItem>() AddItemAttachment<TItem>()

Adds an item attachment to the collection.

Clear() Clear() Clear()

Removes all attachments from the collection.

Contains(TComplexProperty) Contains(TComplexProperty) Contains(TComplexProperty)

Determines whether a specific property is in the collection.

(Inherited from ComplexPropertyCollection<TComplexProperty>)
GetEnumerator() GetEnumerator() GetEnumerator()

Gets an enumerator that iterates through the elements of the collection.

(Inherited from ComplexPropertyCollection<TComplexProperty>)
IndexOf(TComplexProperty) IndexOf(TComplexProperty) IndexOf(TComplexProperty)

Searches for a specific property and return its zero-based index within the collection.

(Inherited from ComplexPropertyCollection<TComplexProperty>)
Remove(Attachment) Remove(Attachment) Remove(Attachment)

Removes the specified attachment from the collection.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

Removes the attachment at the specified index (location) in the collection.

Properties

Count Count Count

Gets the total number of properties in the collection.

(Inherited from ComplexPropertyCollection<TComplexProperty>)
Item[Int32] Item[Int32] Item[Int32]

Gets the property at the specified index.

(Inherited from ComplexPropertyCollection<TComplexProperty>)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Gets an enumerator that iterates through the elements of the collection. The IEnumerable.GetEnumerator() method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

(Inherited from ComplexPropertyCollection<TComplexProperty>)

Applies to