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
phImageList
Type: System.IntPtr%[out, retval] Pointer to hImageList, a handle for this image list.
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
- 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.