IContactManager::GetContactCollection method

Returns an IContactCollection object that contains all known contacts.

Syntax

HRESULT GetContactCollection(
  IContactCollection **ppContactCollection
);

Parameters

ppContactCollection

Type: IContactCollection**

On success, contains an enumeration of the contact collection.

Return Value

Type: HRESULT

Returns one of the following values:

Return code Description
S_OK
Success. ppContactCollection contains the collection.

Remarks

The enumerator of the new collection is set before the first contact. You must first call Next before querying the collection with GetCurrent.

Requirements

   
Windows version Windows Vista [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header icontact.h
DLL Wab32.dll (Version 6.0 or later)