Microsoft.Protocols.TestSuites.MS_ASPROV.MS_ASPROVAdapter.SyncEmail C# (CSharp) Method

SyncEmail() public method

Find an email with specific subject.
public SyncEmail ( SyncRequest syncRequest, string subject, bool isRetryNeeded ) : Sync
syncRequest SyncRequest A SyncRequest object that contains the request information.
subject string The subject of the email to find.
isRetryNeeded bool A boolean indicating whether need retry.
return Sync
        public Sync SyncEmail(SyncRequest syncRequest, string subject, bool isRetryNeeded)
        {
            Sync syncResult = this.activeSyncClient.SyncEmail(syncRequest, subject, isRetryNeeded);
            Site.Assert.IsNotNull(syncResult, "If the Sync command executes successfully, the response from server should not be null.");

            return syncResult;
        }