Table of Contents

Class Attachment

Namespace
Microsoft.Exchange.WebServices.Data
Assembly
Microsoft.Exchange.WebServices.dll

Represents an attachment to an item.

public abstract class Attachment : ComplexProperty
Inheritance
Attachment
Derived
Inherited Members

Properties

ContentId

Gets or sets the content Id 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 the attachment belongs to.

public string ContentId { get; set; }

Property Value

string

ContentLocation

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

public string ContentLocation { get; set; }

Property Value

string

ContentType

Gets or sets the content type of the attachment.

public string ContentType { get; set; }

Property Value

string

Id

Gets the Id of the attachment.

public string Id { get; }

Property Value

string

IsInline

Gets or sets a value indicating whether this is an inline attachment. Inline attachments are not visible to end users.

public bool IsInline { get; set; }

Property Value

bool

LastModifiedTime

Gets the date and time when this attachment was last modified.

public DateTime LastModifiedTime { get; }

Property Value

DateTime

Name

Gets or sets the name of the attachment.

public string Name { get; set; }

Property Value

string

Size

Gets the size of the attachment.

public int Size { get; }

Property Value

int

Methods

Load()

Loads the attachment. Calling this method results in a call to EWS.

public void Load()