EmailMailboxSyncManager
EmailMailboxSyncManager
EmailMailboxSyncManager
EmailMailboxSyncManager
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 EmailMailboxSyncManager : IEmailMailboxSyncManager, IEmailMailboxSyncManager2public sealed class EmailMailboxSyncManager : IEmailMailboxSyncManager, IEmailMailboxSyncManager2Public NotInheritable Class EmailMailboxSyncManager Implements IEmailMailboxSyncManager, IEmailMailboxSyncManager2// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
The SyncManager property provides access to an instance of this class.
Properties
LastAttemptedSyncTime LastAttemptedSyncTime LastAttemptedSyncTime LastAttemptedSyncTime
Gets or sets the last time the mailbox attempted to sync.
public : DateTime LastAttemptedSyncTime { get; set; }public DateTimeOffset LastAttemptedSyncTime { get; set; }Public ReadWrite Property LastAttemptedSyncTime As DateTimeOffset// You can use this property in JavaScript.
- Value
- DateTime DateTimeOffset DateTimeOffset DateTimeOffset
The last time the mailbox attempted to sync.
LastSuccessfulSyncTime LastSuccessfulSyncTime LastSuccessfulSyncTime LastSuccessfulSyncTime
Gets or sets the last time the mailbox was successfully synced.
public : DateTime LastSuccessfulSyncTime { get; set; }public DateTimeOffset LastSuccessfulSyncTime { get; set; }Public ReadWrite Property LastSuccessfulSyncTime As DateTimeOffset// You can use this property in JavaScript.
- Value
- DateTime DateTimeOffset DateTimeOffset DateTimeOffset
The last time the mailbox was successfully synced.
Status Status Status Status
Gets or sets the sync state of the mailbox.
public : EmailMailboxSyncStatus Status { get; set; }public EmailMailboxSyncStatus Status { get; set; }Public ReadWrite Property Status As EmailMailboxSyncStatus// You can use this property in JavaScript.
The sync state of the mailbox.
Methods
SyncAsync() SyncAsync() SyncAsync() SyncAsync()
Initiates a sync of this mailbox.
public : IAsyncOperation<PlatForm::Boolean> SyncAsync()public IAsyncOperation<bool> SyncAsync()Public Function SyncAsync() As IAsyncOperation( Of bool )// You can use this method in JavaScript.
A Boolean value indicating success.
Events
SyncStatusChanged SyncStatusChanged SyncStatusChanged SyncStatusChanged
Fires whenever a mailbox's sync status changes.
public : event TypedEventHandler SyncStatusChanged<EmailMailboxSyncManager, object>public event TypedEventHandler SyncStatusChanged<EmailMailboxSyncManager, object>Public Event SyncStatusChanged<EmailMailboxSyncManager, object>// You can use this event in JavaScript.