_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)

ContactCard CreateContactCard(
	AddressEntry AddressEntry


Type: Microsoft.Office.Interop.Outlook.AddressEntry

The AddressEntry object that represents the user for whom the contact card is to be created.

Return Value

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

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: