WebDAV .NET for Exchange > Tutorial > Monitor for new mail

The following example shows you how to monitor for new mail. Here we are using Subscribe method to subscribe for event "NewMail" and to check user's Inbox folder for new mail. The timer is set to 1 minute and in method CheckPollResponse we are using Poll method to check if the event occurred.

C# example
VB example