SharingItem.AddBusinessCard Method (Outlook)
expression An expression that returns a SharingItem object.
|contact||Required||ContactItem||The contact item from which to obtain the business card information.|
This method adds contact information, generated from the information stored in the ContactItem object, to the existing SharingItem object. The information included depends on the value of the BodyFormat property for the SharingItem object:
| Property value| Result| | olFormatPlain|A vCard (.vcf) file is created and added to the Attachments collection of the SharingItem object.| | olFormatRichText|A vCard (.vcf) file is created and added to the Attachments collection of the SharingItem object.| | olFormatHTML|An image of the business card is generated and included in the Body property of the SharingItem object, and a vCard (.vcf) file is created and added to the Attachments collection of the SharingItem 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.