FileAttachment Class

Definition

Represents a file attachment.

public ref class FileAttachment sealed : Microsoft::Exchange::WebServices::Data::Attachment
public sealed class FileAttachment : Microsoft.Exchange.WebServices.Data.Attachment
Public NotInheritable Class FileAttachment
Inherits Attachment
Inheritance

Properties

Content

Gets the content of the attachment in memory. Content is set only when the Load method is called.

ContentId

Gets or sets the content identifier of the attachment. ContentId can be used as a custom way to identify an attachment in order to reference it from within the body of the item that the attachment belongs to.

(Inherited from Attachment)
ContentLocation

Gets or sets the content location of the attachment. ContentLocation can be used to associate an attachment with a URL that defines its location on the Web.

(Inherited from Attachment)
ContentType

Gets or sets the content type of the attachment.

(Inherited from Attachment)
FileName

Gets the name of the file that the attachment is linked to.

Id

Gets the identifier of the attachment.

(Inherited from Attachment)
IsContactPhoto

Gets or sets a value that indicates whether the attachment is the contact's photo.

IsInline

Gets or sets a value that indicates whether this is an inline attachment.

(Inherited from Attachment)
LastModifiedTime

Gets the date and time when the attachment was last changed.

(Inherited from Attachment)
Name

Gets or sets the name of the attachment.

(Inherited from Attachment)
Size

Gets the size of the attachment.

(Inherited from Attachment)

Methods

Load()

Loads the attachment. Calling this method results in a call to Exchange Web Services (EWS).

(Inherited from Attachment)
Load(Stream)

Loads the content of the file attachment into the specified stream. Calling this method results in a call to Exchange Web Services (EWS).

Load(String)

Loads the content of the file attachment into the specified file. Calling this method results in a call to Exchange Web Services (EWS).

Applies to