Partager via


IVsTaskProvider2.ImageList Method

Returns the image list for the tasks of this task provider.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Déclaration
Function ImageList ( _
    <OutAttribute> ByRef phImageList As IntPtr _
) As Integer
'Utilisation
Dim instance As IVsTaskProvider2
Dim phImageList As IntPtr
Dim returnValue As Integer

returnValue = instance.ImageList(phImageList)
int ImageList(
    out IntPtr phImageList
)
int ImageList(
    [OutAttribute] IntPtr% phImageList
)
function ImageList(
    phImageList : IntPtr
) : int

Parameters

Return Value

Type: System.Int32

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

Implements

IVsTaskProvider.ImageList(IntPtr%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskProvider::ImageList(
   [out,retval] HANDLE *phImageList
);

Implement this method if you want to include a custom image for the bitmap field of any of the tasks you will be providing, rather than using the _vstaskbitmap enumeration. The images provided through _vstaskbitmap are enumerated as negative integers, and any custom image list that you provide is indexed as a positive integer.

Permissions

See Also

Reference

IVsTaskProvider2 Interface

IVsTaskProvider2 Members

Microsoft.VisualStudio.Shell.Interop Namespace