IVsToolbox5.GetItemBitmap Method
Gets a copy of the bitmap for the specified item. The caller is responsible for freeing the bitmap using DeleteObject() or its equivalent.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function GetItemBitmap ( _
pDataObject As IDataObject, _
<OutAttribute> ByRef pBitmap As IntPtr _
) As Integer
int GetItemBitmap(
IDataObject pDataObject,
out IntPtr pBitmap
)
int GetItemBitmap(
[InAttribute] IDataObject^ pDataObject,
[OutAttribute] IntPtr% pBitmap
)
abstract GetItemBitmap :
pDataObject:IDataObject *
pBitmap:IntPtr byref -> int
function GetItemBitmap(
pDataObject : IDataObject,
pBitmap : IntPtr
) : int
Parameters
- pDataObject
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
The item as an IDataObject.
- pBitmap
Type: System.IntPtr%
[out] A pointer to the bitmap.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.