Contacts.count Property

Gets the number of System.Contact items in the Contacts collection.

This property is read-only.

Syntax

propVal = Contacts.count()

  

Parameters

  • intContactCount [out]
    Retrieves the number of items.

Examples

The following example demonstrates how to access a contact in the Contacts collection and get a specific property for that contact.

// Instantiate a Contacts object to search.
oContact = System.ContactManager.Contacts;

// Iterate through all contacts.
for (var i = 0; i < oContact.count; i++)
{
    var sSearchResult = oContact.item(i).defaultEmail;
    // Add search result to main display string.
    sOutput += sSearchResult;
}

Requirements

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
IDL Sidebar.idl
DLL Sidebar.Exe version 1.00 or later

See Also

Contacts

Reference

System.Contact

item

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK