IVsFileIconProvider.GetIconForFile(String, ImageMoniker, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取文件的自定义图标。
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
任意优先级编号。 如果有多个提供程序响应文件,则优先级较高的提供程序将入选。
返回
如果 fullPath 已处理,则返回 true,否则返回 false