Düzenle

Aracılığıyla paylaş


ExchangeUser.GetPicture method (Outlook)

Obtains an IPictureDisp object that represents the picture of the Microsoft Exchange user that is displayed in Microsoft Outlook.

Syntax

expression.GetPicture

expression A variable that represents an ExchangeUser object.

Return value

An IPictureDisp object that represents the picture of the Exchange user that is displayed in Outlook.

Remarks

The picture of the Exchange user is stored in Active Directory and displayed in various places in Outlook, including the dialog box for Outlook Properties and Contact Card.

If the picture does not exist for the user, GetPicture returns Null (Nothing for Visual Basic).

You can only call GetPicture from code that runs in-process as Outlook. An StdPicture object cannot be marshaled across process boundaries. If you attempt to call GetPicture from out-of-process code, an exception occurs.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.