EmailFolder Class

Definition

Represents an email folder.

public ref class EmailFolder sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class EmailFolder final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class EmailFolder
Public NotInheritable Class EmailFolder
Inheritance
Object Platform::Object IInspectable EmailFolder
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
email emailSystem

Remarks

The Folder property returns an instance of this class.

Properties

DisplayName

Gets or sets the display name for the folder.

Id

Gets the ID of the email folder.

IsSyncEnabled

Gets or sets a Boolean value indicating if the folder is sync enabled.

Kind

Gets the type of the folder such as inbox, outbox, drafts, sent, and so on.

LastSuccessfulSyncTime

Gets or sets the last time the folder was successfully synced with the server.

MailboxId

Gets the ID of the mailbox that contains this folder.

ParentFolderId

Gets the ID of this folder's parent folder.

RemoteId

Gets or sets the remote ID of the corresponding folder on the server.

Methods

CreateFolderAsync(String)

Asynchronously creates a new folder.

DeleteAsync()

Asynchronously deletes this folder.

FindChildFoldersAsync()

Asynchronously finds the child folders of this folder.

GetConversationReader()

Gets an instance of the EmailConversationReader class.

GetConversationReader(EmailQueryOptions)

Gets an instance of the EmailConversationReader class using the specified query options.

GetMessageAsync(String)

Asynchronously gets the specified message from the folder.

GetMessageCountsAsync()

Asynchronously gets the counts of email items such as flagged emails, important emails, unread emails, total emails, and so on.

GetMessageReader()

Gets an instance of the EmailMessageReader class.

GetMessageReader(EmailQueryOptions)

Gets an instance of the EmailMessageReader class using the specified query options.

SaveMessageAsync(EmailMessage)

Asynchronously saves the specified email message to the folder.

TryMoveAsync(EmailFolder)

Asynchronously attempts to move this folder to the specified folder.

TryMoveAsync(EmailFolder, String)

Asynchronously attempts to move this folder to the specified folder and rename it in the process.

TrySaveAsync()

Asynchronously attempts to save changes to the folder.

Applies to