Get mailBoxSize with Invoke Code

’ Create a POP3 client
Dim pop As New Spire.Email.Pop3.Pop3Client()
’ Set host, authentication, port, and connection protocol
pop.Host = “outlook.office365.com
pop.Username = username
pop.Password = password
pop.Port = 995
pop.EnableSsl = True

’ Connect to the POP server
pop.Connect()

’ Get the size of the mailbox
out_mailBoxSize = pop.GetSize()