次の方法で共有


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

Syntax

'Declaration
<DispIdAttribute()> _
Sub AddPicture ( _
    Path As String _
)
'Usage
Dim instance As _ContactItem
Dim Path As String

instance.AddPicture(Path)
[DispIdAttribute()]
void AddPicture(
    string Path
)

Parameters

  • Path
    Type: System.String

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

Remarks

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.

See Also

Reference

_ContactItem Interface

_ContactItem Members

Microsoft.Office.Interop.Outlook Namespace