_ExchangeUser.GetPicture Method
Obtains a StdPicture object that represents the picture of the Microsoft Exchange user that is displayed in Microsoft Outlook.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Function GetPicture As StdPicture
'Usage
Dim instance As _ExchangeUser
Dim returnValue As StdPicture
returnValue = instance.GetPicture()
[DispIdAttribute()]
StdPicture GetPicture()
Return Value
Type: StdPicture
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 Nothing (a null reference (Nothing in Visual Basic) in C#).
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. For more information, see An automation server cannot pass a pointer to the picture object's IPictureDisp implementation across process boundaries.