_NameSpace.CreateContactCard Method

Creates an instance of a ContactCard object for the contact that is specified by the AddressEntry parameter.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function CreateContactCard ( _
    AddressEntry As AddressEntry _
) As ContactCard
'Usage
Dim instance As _NameSpace
Dim AddressEntry As AddressEntry
Dim returnValue As ContactCard

returnValue = instance.CreateContactCard(AddressEntry)
[DispIdAttribute()]
ContactCard CreateContactCard(
    AddressEntry AddressEntry
)

Parameters

Return Value

Type: Microsoft.Office.Core.ContactCard
Returns a ContactCard object that is created for the specified user.

Remarks

The ContactCard object is available in the type library of Microsoft Office. Before calling CreateContactCard to create a contact card in Microsoft Outlook, Outlook must be logged into an Outlook session.

The AddressEntry parameter is an AddressEntry object that represents one of the following AddressEntry types defined in the OlAddressEntryUserType enumeration:

Outlook raises the E_INVALIDARG error when you pass any of the following OlAddressEntryUserType values as an argument to the CreateContactCard method:

See Also

Reference

_NameSpace Interface

_NameSpace Members

Microsoft.Office.Interop.Outlook Namespace