Venice
Contact::SeekByName
 
Seeks a Contact card by its name.
 
VARIANT_BOOL SeekByName (
    enum eSeekMode eSeekMode,
    BSTR bsName,
    BSTR bsFirstName
)
 
Key information
This method uses key number 2 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pNameBSTRAscendingCase insensitive
pFirstNameBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsName
[in] The name of the contact you want to seek.
bsFirstName
[in] The first name 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 name = 'Vandenberghe' and first name = 'Peter'
if (pContact->SeekByName (smEqual, "Vandenberghe", "Peter"))
{
    // Process record data
}

C#
 
// Seek the contact with name = 'Vandenberghe' and first name = 'Peter'
if (oContact.SeekByName (eSeekMode.smEqual, "Vandenberghe", "Peter"))
{
    // Process record data
}

VBS
 
' Seek the contact with name = 'Vandenberghe' and first name = 'Peter'
If oContact.SeekByName(smEqual, "Vandenberghe", "Peter") Then
    ' Process record data
End If

VB.NET
 
' Seek the contact with name = 'Vandenberghe' and first name = 'Peter'
If oContact.SeekByName(eSeekMode.smEqual, "Vandenberghe", "Peter") Then
    ' Process record data
End If