Edit

Share via


ExchangeService.SyncFolderHierarchy Method

Definition

Overloads

SyncFolderHierarchy(PropertySet, String)

Synchronizes the entire folder hierarchy of the mailbox that the specified Web service is connected to.

SyncFolderHierarchy(FolderId, PropertySet, String)

Synchronizes the subfolders of a specified folder.

SyncFolderHierarchy(PropertySet, String)

Synchronizes the entire folder hierarchy of the mailbox that the specified Web service is connected to.

public:
 Microsoft::Exchange::WebServices::Data::ChangeCollection<Microsoft::Exchange::WebServices::Data::FolderChange ^> ^ SyncFolderHierarchy(Microsoft::Exchange::WebServices::Data::PropertySet ^ propertySet, System::String ^ syncState);
public Microsoft.Exchange.WebServices.Data.ChangeCollection<Microsoft.Exchange.WebServices.Data.FolderChange> SyncFolderHierarchy (Microsoft.Exchange.WebServices.Data.PropertySet propertySet, string syncState);

Parameters

propertySet
PropertySet

The set of properties to be retrieved for synchronized items.

syncState
String

The optional synchronization state that represents the point in time at which the synchronization is to start.

Returns

A list of changes that occurred in the specified mailbox.

Applies to

SyncFolderHierarchy(FolderId, PropertySet, String)

Synchronizes the subfolders of a specified folder.

public:
 Microsoft::Exchange::WebServices::Data::ChangeCollection<Microsoft::Exchange::WebServices::Data::FolderChange ^> ^ SyncFolderHierarchy(Microsoft::Exchange::WebServices::Data::FolderId ^ syncFolderId, Microsoft::Exchange::WebServices::Data::PropertySet ^ propertySet, System::String ^ syncState);
public Microsoft.Exchange.WebServices.Data.ChangeCollection<Microsoft.Exchange.WebServices.Data.FolderChange> SyncFolderHierarchy (Microsoft.Exchange.WebServices.Data.FolderId syncFolderId, Microsoft.Exchange.WebServices.Data.PropertySet propertySet, string syncState);

Parameters

syncFolderId
FolderId

The ID of the folder that contains the subfolders to be synchronized. A a null reference (Nothing in Visual Basic) value indicates the root folder of the mailbox.

propertySet
PropertySet

The set of properties to be retrieved for synchronized subfolders.

syncState
String

The optional sync state that represents the point in time at which the synchronization is to start.

Returns

A list of changes that occurred in the specified folder.

Remarks

Calling this method results in a call to Exchange Web Services (EWS).

Applies to