A collection of System.Contact objects.
Note
Objects of type
System.Contact can only be accessed through the
Contacts collection. This collection is a member of
System.ContactManager.
Syntax
| [ collContact
= ] System.ContactManager.Contacts |
| [ oInstance = ] System.ContactManager.Contacts.item(iIndex) |
| [ iCount = ] System.ContactManager.Contacts.count |
Possible Values
| collContact | A collection of System.Contact objects. |
| oInstance | An instance of the object from the specified index within the collection. |
| iIndex | Required. Integer that specifies the zero-based index of the item to be returned. |
| iCount | An integer that receives the count of items in the collection. |
Remarks
Each System.Contact corresponds to a Microsoft Windows Mail (formerly Outlook Express) .contact file that Windows creates for each individual Windows Contacts entry.
Example
The following example demonstrates how to access a
Contacts collection
from System.ContactManager, select a single
Contact from the collection,
and retrieve the city property of that
Contact.
// collContact is a collection of System.Contact objects.
var collContact = System.ContactManager.Contacts;
// oContact is a System.Contact object.
// oContact is item 3 in the collContact collection.
var oContact = collContact.item(3);
// strContactCity is the value of the city property of oContact.
var strContactCity = oContact.city;
Applies To
See Also