How to use NewMail or NewMailEx to monitor outlook inbox

I want to use outlook own event to monitor inbox, and trigger a message box to show new mail’s subject.

ApplicationEvents_11_Event.NewMail and ApplicationEvents_11_Event.NewMailEx are all can monitor it. But how to use them in invoke method?