IVsFileIconProvider.GetIconForFile(String, ImageMoniker, Int32) 方法

定义

获取文件的自定义图标。

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

参数

fullPath
String

文件的完整路径

imageMoniker
ImageMoniker

要用于该文件的图像名字对象

priority
Int32

任意优先级编号。 如果有多个提供程序响应文件,则优先级较高的提供程序将入选。

返回

Boolean

如果 fullPath 已处理,则返回 true,否则返回 false

适用于