Compartilhar via


IVsToolbox5.GetItemBitmap(IDataObject, IntPtr) Method

Definition

Gets a copy of the bitmap for the specified item. The caller is responsible for freeing the bitmap using DeleteObject() or its equivalent.

public:
 int GetItemBitmap(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pDataObject, [Runtime::InteropServices::Out] IntPtr % pBitmap);
public int GetItemBitmap (Microsoft.VisualStudio.OLE.Interop.IDataObject pDataObject, out IntPtr pBitmap);
abstract member GetItemBitmap : Microsoft.VisualStudio.OLE.Interop.IDataObject * nativeint -> int
Public Function GetItemBitmap (pDataObject As IDataObject, ByRef pBitmap As IntPtr) As Integer

Parameters

pDataObject
IDataObject

The item as an IDataObject.

pBitmap
IntPtr

nativeint

[out] A pointer to the bitmap.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to