srakaoh.blogg.se

Hot to quick view multiple accounts in outlook 2016
Hot to quick view multiple accounts in outlook 2016










hot to quick view multiple accounts in outlook 2016

using Outlook = įoreach (Outlook.Account account in accounts)

HOT TO QUICK VIEW MULTIPLE ACCOUNTS IN OUTLOOK 2016 HOW TO

The following line of code shows how to do the import and assignment in C#. The using statement must not occur directly before the functions in the code example but must be added before the public Class declaration. If you use Visual Studio to test this code example, you must first add a reference to the Microsoft Outlook 15.0 Object Library component and specify the Outlook variable when you import the namespace. Use the ExchangeUser object to display the user name and SMTP address.

hot to quick view multiple accounts in outlook 2016

Use the Account object to display the account name, Exchange server name, and Exchange version information. If the account is an Exchange account, proceed as follows: If the account is not an Exchange account, use the AddressEntry object to display the user name and SMTP address. If the Account object does not contain information about the user name and SMTP address, proceed as follows: If the Account object contains information about the user name and SMTP address, use the Account object to display the account name, user name, SMTP address, and Exchange server name and version information if the account is an Exchange account. The following is the algorithm to obtain various information by using the Account, AddressEntry, and ExchangeUser objects: EnumerateAccounts obtains the ExchangeUser object by using the GetExchangeUser() method of the AddressEntry object. In that case, EnumerateAccounts uses the AddressEntry and ExchangeUser objects.ĮnumerateAccounts obtains the AddressEntry object by using the AddressEntry property of the Recipient object obtained from the CurrentUser property. And if the account resides on a delivery store, EnumerateAccounts displays the name of the default delivery store for the account.ĮnumerateAccounts accesses most of this information from the Account object, except when the Account object does not contain information about the user name and SMTP address. If the account is connected to an Exchange server, EnumerateAccounts displays the Exchange server name and version information. The following method, EnumerateAccounts, displays the account name, user name, and Simple Mail Transfer Protocol (SMTP) address for each account that is defined in the current profile. This example shows how to obtain and display miscellaneous information about each account in the current profile. Outlook supports a profile that contains one or more accounts that are connected to an Exchange Server.












Hot to quick view multiple accounts in outlook 2016