System.Contact.defaultEmail Property

Gets the default e-mail address associated with the contact.

This property is read-only.

Syntax

propVal = System.Contact.defaultEmail()

  

Parameters

  • strDefEmail [out]
    Retrieves the default E-mail address.

Remarks

Individual contacts are accessible through the Contacts collection of System.ContactManager.

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;
}

See Also

System.Contact

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK