Udostępnij za pośrednictwem


IVsTaskProvider.ImageList(IntPtr) Method

Definition

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

public:
 int ImageList([Runtime::InteropServices::Out] IntPtr % phImageList);
public int ImageList (out IntPtr phImageList);
abstract member ImageList : nativeint -> int
Public Function ImageList (ByRef phImageList As IntPtr) As Integer

Parameters

phImageList
IntPtr

nativeint

[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.

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.

Applies to