_NameSpace.CreateContactCard(AddressEntry) Method

Definition

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

public:
 Microsoft::Office::Core::ContactCard ^ CreateContactCard(Microsoft::Office::Interop::Outlook::AddressEntry ^ AddressEntry);
public Microsoft.Office.Core.ContactCard CreateContactCard (Microsoft.Office.Interop.Outlook.AddressEntry AddressEntry);

Parameters

AddressEntry
AddressEntry

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

Returns

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:

Applies to