AttachmentCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Properties
Count |
Gets the total number of properties in the collection. (Inherited from ComplexPropertyCollection<TComplexProperty>) |
Item[Int32] |
Gets the property at the specified index. (Inherited from ComplexPropertyCollection<TComplexProperty>) |
Methods
AddFileAttachment(String, Byte[]) |
Adds a file attachment to the collection that contains the file. |
AddFileAttachment(String, Stream) |
Adds a file attachment to the collection by using a data stream that contains the file. |
AddFileAttachment(String, String) |
Adds a file attachment to the collection. |
AddFileAttachment(String) |
Adds a file attachment to the collection. |
AddItemAttachment<TItem>() |
Adds an item attachment to the collection. |
Clear() |
Removes all attachments from the collection. |
Contains(TComplexProperty) |
Determines whether a specific property is in the collection. (Inherited from ComplexPropertyCollection<TComplexProperty>) |
GetEnumerator() |
Gets an enumerator that iterates through the elements of the collection. (Inherited from ComplexPropertyCollection<TComplexProperty>) |
IndexOf(TComplexProperty) |
Searches for a specific property and return its zero-based index within the collection. (Inherited from ComplexPropertyCollection<TComplexProperty>) |
Remove(Attachment) |
Removes the specified attachment from the collection. |
RemoveAt(Int32) |
Removes the attachment at the specified index (location) in the collection. |
Explicit Interface Implementations
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>) |