System.ContactManager.Contacts Property
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.
This property is read-only.
Syntax
propVal = System.ContactManager.Contacts()
Parameters
- collContact [out]
A collection of System.Contact objects.
Remarks
Each System.Contact corresponds to a Windows Mail (formerly Outlook Express) .contact file that Windows creates for each individual Windows Contacts entry.
Examples
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;
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
Reference
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK