Compartir a través de


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

'Declaration
Function ImageList ( _
    <OutAttribute> ByRef phImageList As IntPtr _
) As Integer
int ImageList(
    out IntPtr phImageList
)
int ImageList(
    [OutAttribute] IntPtr% phImageList
)
abstract ImageList : 
        phImageList:IntPtr byref -> int
function ImageList(
    phImageList : IntPtr
) : int

Parameters

  • phImageList
    Type: IntPtr%

    [out, retval] Pointer to hImageList, a handle for this image list.

Return Value

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

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.

.NET Framework Security

See Also

Reference

IVsTaskProvider2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace