Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
Outlook.Application outlook = new Outlook.ApplicationClass(); Outlook.NameSpace ns = outlook.GetNamespace("Mapi"); object _missing = Type.Missing; //ns.Logon(_missing, _missing, true, true); ns.Logon("UserDoesntExist", "Password", false, true); Outlook.MAPIFolder inbox = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox); int unread = inbox.UnReadItemCount;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.