To obtain a Categories collection that represents the Master Category List for the primary account of the session. To obtain information for the Exchange server that hosts the account mailbox. To obtain information for the Exchange server that hosts the primary Exchange account mailbox.Īccount.ExchangeConnectionMode property, Account.ExchangeMailboxServerName property, Account.ExchangeMailboxServerVersion property To use auto discovery of the Exchange server that hosts the account mailbox.ĮxchangeConnectionMode property, ExchangeMailboxServerName property, ExchangeMailboxServerVersion property To use auto discovery of the Exchange server that hosts the primary Exchange account mailbox.Īccount.AutoDiscoverConnectionMode property, Account.AutoDiscoverXml property, Accounts.AutoDiscoverComplete event Use the following members of the noted objects if there are multiple accounts in the session's profile.ĪutoDiscoverConnectionMode property, AutoDiscoverXml property, AutoDiscoverComplete event If only the primary Exchange account is in the session's profile, use the following members of the NameSpace object.
The following table compares members of the NameSpace object and members of the Account, Accounts, or Store object depending on whether the session's profile has one account or multiple accounts. = OlExchangeStoreType.olPrimaryExchangeMailbox To identify the primary Exchange account in the Accounts collection for a session, look for the account that has the ExchangeStoreType property of the store (that is specified by Account.DeliveryStore) equal to OlExchangeStoreType.olPrimaryExchangeMailbox. The NameSpace.Accounts property returns an Accounts collection for the current profile, tracking information for all accounts including Exchange, IMAP, and POP3 accounts, each of which can be associated with a different delivery store. For a given session, the NameSpace object has members that maintain and access information for the primary Exchange account, and the Accounts property of the NameSpace object holds information for all the accounts defined for the session's profile.
You can sign in to Outlook by using a profile that specifies one or more accounts associated with different delivery stores.