_MailItem.AddBusinessCard(ContactItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Appends contact information based on the Electronic Business Card (EBC) associated with the specified ContactItem object to the MailItem object.
public:
void AddBusinessCard(Microsoft::Office::Interop::Outlook::ContactItem ^ contact);
public void AddBusinessCard (Microsoft.Office.Interop.Outlook.ContactItem contact);
Public Sub AddBusinessCard (contact As ContactItem)
Parameters
- contact
- ContactItem
The contact item from which to obtain the business card information.
Remarks
This method adds contact information, generated from the information stored in the ContactItem object, to the existing MailItem object. The information included depends on the value of the BodyFormat property for the MailItem object:
Property value | Result | |
olFormatPlain | A vCard (.vcf) file is created and added to the Attachments collection of the MailItem object. | |
olFormatRichText | A vCard (.vcf) file is created and added to the Attachments collection of the MailItem object. | |
olFormatHTML | An image of the business card is generated and included in the Body property of the MailItem object, and a vCard (.vcf) file is created and added to the Attachments collection of the MailItem object. |
Note: The attached vCard file contains only the contact information included in the Electronic Business Card associated with the ContactItem object. Any contact information not displayed in the Electronic Business Card is excluded from the vCard file.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應