Accounts Accounts Accounts Interface


The Accounts collection object contains a set of Account objects representing the accounts available for the current profile.

public interface class Accounts : Microsoft::Office::Interop::Outlook::_Accounts, Microsoft::Office::Interop::Outlook::AccountsEvents_Event
public interface Accounts : Microsoft.Office.Interop.Outlook._Accounts, Microsoft.Office.Interop.Outlook.AccountsEvents_Event
Public Interface Accounts
Implements _Accounts, AccountsEvents_Event


This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _Accounts.

The purpose of the Accounts collection object and the Account object is to allow the enumeration of Account objects in a given profile, the identification of the type of an Account, and the use of a specific Account object to send mail.


Application Application Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

(Inherited from _Accounts)

Class Class Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

(Inherited from _Accounts)

Count Count Count

Returns an Integer (int in C#) value indicating the count of objects in the specified collection. Read-only.

(Inherited from _Accounts)

Item[Object] Item[Object] Item[Object]

Returns an Account object specified by Index.

(Inherited from _Accounts)

Parent Parent Parent

Returns the parent Object of the specified object. Read-only.

(Inherited from _Accounts)

Session Session Session

Returns the NameSpace object for the current session. Read-only.

(Inherited from _Accounts)


AutoDiscoverComplete AutoDiscoverComplete AutoDiscoverComplete

Occurs after Microsoft Outlook has finished accessing the auto-discovery service of the Microsoft Exchange Server that is associated with the account, and has the related information available in the AutoDiscoverXml property of the Account object.

(Inherited from AccountsEvents_Event)

Applies to