IVsTaskProvider2.ImageList(IntPtr) Method

Definition

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

C++
public:
 int ImageList([Runtime::InteropServices::Out] IntPtr % phImageList);

Parameters

phImageList
IntPtr

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

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

cpp#
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.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022