Partager via


AddressEntry.GetContact Method

Returns a ContactItem object that represents the AddressEntry, if the AddressEntry corresponds to a contact in an Outlook Contacts Address Book (CAB).

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Function GetContact As ContactItem
'Usage
Dim instance As AddressEntry
Dim returnValue As ContactItem

returnValue = instance.GetContact()
[DispIdAttribute()]
ContactItem GetContact()

Return Value

Type: Microsoft.Office.Interop.Outlook.ContactItem
A ContactItem object that corresponds to the AddressEntry. Returns Nothing (a null reference (Nothing in Visual Basic) in C#) if the AddressEntry object does not correspond to a contact in a Contacts Address Book.

See Also

Reference

AddressEntry Interface

AddressEntry Members

Microsoft.Office.Interop.Outlook Namespace