Share via


IMessengerContacts::Count Property

Deprecated. Retrieves the number of MessengerContacts objects in the collection.

Syntax

HRESULT IMessengerContacts::get_Count(long *pcContacts);

Parameters

  • pcContacts
    LONG that provides the number of MessengerContacts objects in the collection.

Return Value

Returns one of the following values. 

S_OK Success.
RPC_X_NULL_REF_POINTER pcContacts is a NULL pointer.

Remarks

If there are no active MessengerContacts objects in the Contact List, pcContacts will return zero.

If this method is called while the client is offline, the method call will not fail, but the Contact List will always have zero members and zero count.

Note  This property is available for scripting languages.

Important  IMessengerContacts::Count is no longer available in Windows Vista. See Windows Messenger for more information.

See Also

IMessengerContacts::Item