This documentation is archived and is not being maintained.

_ContactItem.AddPicture Method

Adds a picture to a contact item.

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

void AddPicture(
	string Path


Type: System.String

A string containing the complete path and filename of the picture to be added to the contact item.

If the contact item already has a picture attached to it, this method will overwrite the existing picture.

The picture can be an icon, GIF, JPEG, BMP, TIFF, WMF, EMF, or PNG file. Microsoft Outlook will automatically perform the necessary resizing of the picture.