IContactCollection::GetCurrent method (icontact.h)

Retrieves the current contact in the enumeration.

Syntax

HRESULT GetCurrent(
  [out] IContact **ppContact
);

Parameters

[out] ppContact

Type: IContact**

If successful, contains the current contact.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

After reset, a call to IContactCollection::GetCurrent without first calling IContactCollection::Next will fail.

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)

See also

IContactCollection

IContactCollection::Reset