获取指定文件的图标。
命名空间: Microsoft.VisualStudio.TeamFoundation
程序集: Microsoft.VisualStudio.TeamFoundation(在 Microsoft.VisualStudio.TeamFoundation.dll 中)
语法
声明
Public Overrides Function GetBitmapSourceForFile ( _
filename As String, _
<OutAttribute> ByRef themeIcon As Boolean _
) As BitmapSource
public override BitmapSource GetBitmapSourceForFile(
string filename,
out bool themeIcon
)
参数
- filename
类型:System.String
文件名。
- themeIcon
类型:System.Boolean%
返回值
类型:System.Windows.Media.Imaging.BitmapSource
如果有图标,否则为 null。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。