EmailStore EmailStore EmailStore EmailStore Class

Definition

The functionality described in this topic is not available to all Windows and Windows Phone apps. For your code to call these APIs, Microsoft must approve your use of them and provision your developer account. Otherwise the calls will fail at runtime.

For more information about the Windows.ApplicationModel.Email namespace, please work with your Microsoft Account Team representative.

public : sealed class EmailStore : IEmailStorepublic sealed class EmailStore : IEmailStorePublic NotInheritable Class EmailStore Implements IEmailStore// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The functionality described in this topic is not available to all Windows and Windows Phone apps. For your code to call these APIs, Microsoft must approve your use of them and provision your developer account. Otherwise the calls will fail at runtime.

Methods

CreateMailboxAsync(String, String) CreateMailboxAsync(String, String) CreateMailboxAsync(String, String) CreateMailboxAsync(String, String)

Allows an app to create an email account from an account name and an email address.

public : IAsyncOperation<EmailMailbox> CreateMailboxAsync(PlatForm::String accountName, PlatForm::String accountAddress)public IAsyncOperation<EmailMailbox> CreateMailboxAsync(String accountName, String accountAddress)Public Function CreateMailboxAsync(accountName As String, accountAddress As String) As IAsyncOperation( Of EmailMailbox )// You can use this method in JavaScript.
Parameters
accountName
PlatForm::String String String String

The name of the account.

accountAddress
PlatForm::String String String String

The email address associated with the account.

Returns
See Also

CreateMailboxAsync(String, String, String) CreateMailboxAsync(String, String, String) CreateMailboxAsync(String, String, String) CreateMailboxAsync(String, String, String)

Allows an app to create an email account from an account name, an email address, and the user data account in which the mailbox will reside.

public : IAsyncOperation<EmailMailbox> CreateMailboxAsync(PlatForm::String accountName, PlatForm::String accountAddress, PlatForm::String userDataAccountId)public IAsyncOperation<EmailMailbox> CreateMailboxAsync(String accountName, String accountAddress, String userDataAccountId)Public Function CreateMailboxAsync(accountName As String, accountAddress As String, userDataAccountId As String) As IAsyncOperation( Of EmailMailbox )// You can use this method in JavaScript.
Parameters
accountName
PlatForm::String String String String

The name of the account.

accountAddress
PlatForm::String String String String

The email address associated with the account.

userDataAccountId
PlatForm::String String String String

The user data account identifier associated with this user.

Returns
See Also

FindMailboxesAsync() FindMailboxesAsync() FindMailboxesAsync() FindMailboxesAsync()

Gets all mailboxes within the current scope.

public : IAsyncOperation<IVectorView<EmailMailbox>> FindMailboxesAsync()public IAsyncOperation<IReadOnlyList<EmailMailbox>> FindMailboxesAsync()Public Function FindMailboxesAsync() As IAsyncOperation( Of IReadOnlyListEmailMailbox )// You can use this method in JavaScript.
Returns
IAsyncOperation<IVectorView<EmailMailbox>> IAsyncOperation<IReadOnlyList<EmailMailbox>> IAsyncOperation<IReadOnlyList<EmailMailbox>> IAsyncOperation<IReadOnlyList<EmailMailbox>>

A collection of mailboxes.

GetConversationAsync(String) GetConversationAsync(String) GetConversationAsync(String) GetConversationAsync(String)

Gets an email conversation from the provided identifier.

public : IAsyncOperation<EmailConversation> GetConversationAsync(PlatForm::String id)public IAsyncOperation<EmailConversation> GetConversationAsync(String id)Public Function GetConversationAsync(id As String) As IAsyncOperation( Of EmailConversation )// You can use this method in JavaScript.
Parameters
id
PlatForm::String String String String

The identifier of the conversation.

Returns

GetConversationReader() GetConversationReader() GetConversationReader() GetConversationReader()

Gets a batch of email conversations.

public : EmailConversationReader GetConversationReader()public EmailConversationReader GetConversationReader()Public Function GetConversationReader() As EmailConversationReader// You can use this method in JavaScript.
Returns
See Also

GetConversationReader(EmailQueryOptions) GetConversationReader(EmailQueryOptions) GetConversationReader(EmailQueryOptions) GetConversationReader(EmailQueryOptions)

Gets a batch of email conversations using the specified email query options.

public : EmailConversationReader GetConversationReader(EmailQueryOptions options)public EmailConversationReader GetConversationReader(EmailQueryOptions options)Public Function GetConversationReader(options As EmailQueryOptions) As EmailConversationReader// You can use this method in JavaScript.
Parameters
Returns
See Also

GetFolderAsync(String) GetFolderAsync(String) GetFolderAsync(String) GetFolderAsync(String)

Gets an email folder from an identifier.

public : IAsyncOperation<EmailFolder> GetFolderAsync(PlatForm::String id)public IAsyncOperation<EmailFolder> GetFolderAsync(String id)Public Function GetFolderAsync(id As String) As IAsyncOperation( Of EmailFolder )// You can use this method in JavaScript.
Parameters
id
PlatForm::String String String String

The identifier for the email folder.

Returns

GetMailboxAsync(String) GetMailboxAsync(String) GetMailboxAsync(String) GetMailboxAsync(String)

Gets a mailbox from an identifier.

public : IAsyncOperation<EmailMailbox> GetMailboxAsync(PlatForm::String id)public IAsyncOperation<EmailMailbox> GetMailboxAsync(String id)Public Function GetMailboxAsync(id As String) As IAsyncOperation( Of EmailMailbox )// You can use this method in JavaScript.
Parameters
id
PlatForm::String String String String

The identifier for the mailbox.

Returns

GetMessageAsync(String) GetMessageAsync(String) GetMessageAsync(String) GetMessageAsync(String)

Gets the specified email message.

public : IAsyncOperation<EmailMessage> GetMessageAsync(PlatForm::String id)public IAsyncOperation<EmailMessage> GetMessageAsync(String id)Public Function GetMessageAsync(id As String) As IAsyncOperation( Of EmailMessage )// You can use this method in JavaScript.
Parameters
id
PlatForm::String String String String

The identifier for the email message.

Returns

GetMessageReader() GetMessageReader() GetMessageReader() GetMessageReader()

Gets a message reader.

public : EmailMessageReader GetMessageReader()public EmailMessageReader GetMessageReader()Public Function GetMessageReader() As EmailMessageReader// You can use this method in JavaScript.
Returns
See Also

GetMessageReader(EmailQueryOptions) GetMessageReader(EmailQueryOptions) GetMessageReader(EmailQueryOptions) GetMessageReader(EmailQueryOptions)

Gets a message reader using the specified query options.

public : EmailMessageReader GetMessageReader(EmailQueryOptions options)public EmailMessageReader GetMessageReader(EmailQueryOptions options)Public Function GetMessageReader(options As EmailQueryOptions) As EmailMessageReader// You can use this method in JavaScript.
Parameters
Returns
See Also