IContactManager::GetContactCollection method (icontact.h)

Returns an IContactCollection object that contains all known contacts.

Syntax

HRESULT GetContactCollection(
  [out] IContactCollection **ppContactCollection
);

Parameters

[out] 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

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header icontact.h
DLL Wab32.dll (Version 6.0 or later)