Comparing Usage of MaxWaitSeconds

The following table lists some of the advantages and disadvantages of these two operations.

Operation Advantages Disadvantages
MaxWaitSeconds=0 Returns only properties that have changed since the version specified. Returns changed data only, providing better network utilization than RetrieveProperties. Returns an empty set even when nothing has changed on the server. Depending on your client application, this might be inefficient.
MaxWaitSeconds>0 Blocks thread until an update occurs. Efficient use of network resources. The only operation that you can cancel. Blocks processing thread until updates occur. However, this call can be cancelled so you can monitor the time the operation is taking and cancel if necessary.