Microsoft.Protocols.TestSuites.MS_ASEMAIL.TestSuiteBase.CreateSyncPermanentDeleteRequest C# (CSharp) Method

CreateSyncPermanentDeleteRequest() protected static method

Create a Sync delete operation request which would be used to delete items permanently.
protected static CreateSyncPermanentDeleteRequest ( string syncKey, string collectionId, string serverId ) : SyncRequest
syncKey string The synchronization state of a collection.
collectionId string The server ID of the folder.
serverId string The server ID of the item which will be deleted.
return SyncRequest
        protected static SyncRequest CreateSyncPermanentDeleteRequest(string syncKey, string collectionId, string serverId)
        {
            Request.SyncCollection syncCollection = new Request.SyncCollection
            {
                SyncKey = syncKey,
                CollectionId = collectionId,
                WindowSize = "100",
                DeletesAsMoves = false,
                DeletesAsMovesSpecified = true
            };

            Request.SyncCollectionDelete deleteData = new Request.SyncCollectionDelete { ServerId = serverId };

            syncCollection.Commands = new object[] { deleteData };

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