Share via


Synchronize Contents State

Applies to: Office 2010 | Outlook 2010 | Visual Studio

This topic describes what happens during the synchronize contents state of the replication state machine.

Quick Info

State Identifier:

LR_SYNC_CONTENTS

Related Data Structure:

SYNCCONT

From this state:

Synchronize state

To this state:

Download table state, upload table state, or synchronize state

Note

The replication state machine is a deterministic state machine. A client departing from one state to another must eventually return to the former from the latter.

Description

This state initiates one of the two replication processes: uploading the contents of specified folders on a local store, or a full synchronization. In a full synchronization, for each of the specified folders, contents are uploaded first and then downloaded. Depending on the ulFlags set in the corresponding SYNC structure in the preceding synchronize state, Outlook initializes [out] members in the SYNCCONT structure to provide information about the contents.

Through the same SYNCCONT structure, the client obtains the count of the folders that have content to be uploaded or downloaded. The client will loop through each of these folders by moving the local store to the upload table state to upload a folder, or moving the local store to the download table state to download the folder.

In addition, the client obtains entry IDs for the folders requiring replication.

When this state ends, Outlook cleans up its internal information. The local store returns to the synchronize state.

See Also

Concepts

About the Replication API

MAPI Constants

About the Replication State Machine

SYNCSTATE