Venice
Contact::SeekByEmail
 
Seeks a Contact card by its e-mail address.
 
VARIANT_BOOL SeekByEmail (
    enum eSeekMode eSeekMode,
    BSTR bsEmail
)
 
Key information
This method uses key number 3 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pEmailBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsEmail
[in] The e-mail address of the contact you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateContact
 
Samples
 
C++
 
// Seek the contact with e-mail address = 'firstname.lastname@someserver.com'
if (pContact->SeekByEmail (smEqual, "firstname.lastname@someserver.com"))
{
    // Process record data
}

C#
 
// Seek the contact with e-mail address = 'firstname.lastname@someserver.com'
if (oContact.SeekByEmail (eSeekMode.smEqual, "firstname.lastname@someserver.com"))
{
    // Process record data
}

VBS
 
' Seek the contact with e-mail address = 'firstname.lastname@someserver.com'
If oContact.SeekByEmail(smEqual, "firstname.lastname@someserver.com") Then
    ' Process record data
End If

VB.NET
 
' Seek the contact with e-mail address = 'firstname.lastname@someserver.com'
If oContact.SeekByEmail(eSeekMode.smEqual, "firstname.lastname@someserver.com") Then
    ' Process record data
End If