Share via


IMessengerContacts interface

[IMessengerContacts is no longer available for use as of Windows Vista. See Windows Messenger for more information.]

Do not use. An interface that manipulates the contact list, which maintains a collection of users in a Messenger object.

Any MessengerContacts collection object can have zero members in its collection.

List collection objects are not explicitly created or destroyed. They already exist and were created by the Messenger object. To create a pointer to the existing object that represents the Contact List, use the GetContact method.

Members

The IMessengerContacts interface inherits from the IDispatch interface. IMessengerContacts also has these types of members:

Methods

The IMessengerContacts interface has these methods.

Method Description
Item Retrieves a specific service by index.
Remove Removes a MessengerContact object from a collection.

Properties

The IMessengerContacts interface has these properties.

Property Access type Description
_NewEnum
Read-only
Enumerates the MessengerContact objects in a collection.
Count
Read-only
Retrieves the number of MessengerContacts objects in the collection.

Remarks

The Messenger client contains other lists of users and contacts internally, but only the contact list is accessible through the Windows Messenger API.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
End of client support
Windows XP
End of server support
Windows Server 2003
Product
Messenger 4.0
Header
Msgrua.h
IDL
Msgrua.idl
DLL
Msgsc.dll