Share via


IVsFileIconProvider.GetIconForFile(String, ImageMoniker, Int32) Method

Definition

Gets a custom icon for a file.

public:
 bool GetIconForFile(System::String ^ fullPath, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Imaging::Interop::ImageMoniker % imageMoniker, [Runtime::InteropServices::Out] int % priority);
public bool GetIconForFile (string fullPath, out Microsoft.VisualStudio.Imaging.Interop.ImageMoniker imageMoniker, out int priority);
abstract member GetIconForFile : string * ImageMoniker * int -> bool
Public Function GetIconForFile (fullPath As String, ByRef imageMoniker As ImageMoniker, ByRef priority As Integer) As Boolean

Parameters

fullPath
String

full path to file

imageMoniker
ImageMoniker

image moniker to use for that file

priority
Int32

arbitrary priority number. If more than one provider respond to a file the higher priority will win.

Returns

Returns true if fullPath it handled, false otherwise

Applies to