2016-10-20 93 views

回答

-1
service.Credentials = new NetworkCredential(user, pw, ConfigurationManager.AppSettings["Domaene"]); 
        Folder inbox = Folder.Bind(service, WellKnownFolderName.Inbox); //Find inbox of the user 
        int anzahl = inbox.TotalCount; 

這將是解決方案,如果你想找到收件箱中的電子郵件的總數。真的不知道這是你要求的片段。只是猜測,但也許更多地指定你的問題,讓用戶可以更好地幫助你。

相關問題