ContactListSyncManager
ContactListSyncManager
ContactListSyncManager
ContactListSyncManager
Class
Definition
Provides functionality for syncing contact information with the server.
public : sealed class ContactListSyncManager : IContactListSyncManager, IContactListSyncManager2public sealed class ContactListSyncManager : IContactListSyncManager, IContactListSyncManager2Public NotInheritable Class ContactListSyncManager Implements IContactListSyncManager, IContactListSyncManager2// 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)
|
Properties
LastAttemptedSyncTime LastAttemptedSyncTime LastAttemptedSyncTime LastAttemptedSyncTime
Gets or sets the last time a sync was attempted with the server.
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 a sync was attempted with the server.
LastSuccessfulSyncTime LastSuccessfulSyncTime LastSuccessfulSyncTime LastSuccessfulSyncTime
Gets or sets the last time the ContactList was successfully synced with the server.
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 ContactList was successfully synced with the server.
Status Status Status Status
Gets or sets the ContactListSyncStatus.
public : ContactListSyncStatus Status { get; set; }public ContactListSyncStatus Status { get; set; }Public ReadWrite Property Status As ContactListSyncStatus// You can use this property in JavaScript.
Methods
SyncAsync() SyncAsync() SyncAsync() SyncAsync()
Asynchronously attempts to sync with the contacts server.
public : IAsyncOperation<PlatForm::Boolean> SyncAsync()public IAsyncOperation<bool> SyncAsync()Public Function SyncAsync() As IAsyncOperation( Of bool )// You can use this method in JavaScript.
Returns
IAsyncOperation<PlatForm::Boolean>
IAsyncOperation<bool>
IAsyncOperation<bool>
IAsyncOperation<bool>
A Boolean value indicating if the sync was successful.
Events
SyncStatusChanged SyncStatusChanged SyncStatusChanged SyncStatusChanged
Occurs when the sync status with the server has changed.
public : event TypedEventHandler SyncStatusChanged<ContactListSyncManager, object>public event TypedEventHandler SyncStatusChanged<ContactListSyncManager, object>Public Event SyncStatusChanged<ContactListSyncManager, object>// You can use this event in JavaScript.