Get mailBoxSize with Invoke Code

I get errors in this code when I copy and paste this code in the Invoke Code editor.

For example, in the first line Imports Spire.Email.Pop3, in Imports, I get the following error:

Module member declaration expected.