Microsoft.Protocols.TestSuites.MS_ASEMAIL.TestSuiteHelper.CreateSyncChangeRequest C# (CSharp) Method

CreateSyncChangeRequest() static private method

Builds a Sync change request by using the specified sync key, folder collection ID and change application data. In general, returns the XML formatted Sync request as follows:
static private CreateSyncChangeRequest ( string syncKey, string collectionId, Request changeData ) : SyncRequest
syncKey string Specify the sync key obtained from the last sync response(Refer to [MS-ASCMD]2.2.3.166.4)
collectionId string Specify the server ID of the folder to be synchronized, which can be returned by ActiveSync FolderSync command(Refer to [MS-ASCMD]2.2.3.30.5)
changeData Microsoft.Protocols.TestSuites.Common.Request Contains the data used to specify the Change element for Sync command(Refer to [MS-ASCMD]2.2.3.11)
return SyncRequest
        internal static SyncRequest CreateSyncChangeRequest(string syncKey, string collectionId, Request.SyncCollectionChange changeData)
        {
            Request.SyncCollection syncCollection = CreateSyncCollection(syncKey, collectionId);
            syncCollection.Commands = new object[] { changeData };

            return Common.CreateSyncRequest(new Request.SyncCollection[] { syncCollection });
        }