获取或设置资源的路径,该资源包含要在跳转列表中显示的图标。
命名空间: Microsoft.Windows.Shell
程序集: Microsoft.Windows.Shell(在 Microsoft.Windows.Shell.dll 中)
语法
声明
Public Property IconResourcePath As String
Get
Set
public string IconResourcePath { get; set; }
public:
property String^ IconResourcePath {
String^ get ();
void set (String^ value);
}
member IconResourcePath : string with get, set
function get IconResourcePath () : String
function set IconResourcePath (value : String)
属性值
类型:System.String
包含图标的资源的路径。默认值为 nullnull 引用(在 Visual Basic 中为 Nothing)。
备注
用于 JumpTask 的图标必须作为本机资源提供。 如果 DLL 或可执行文件中提供多个图标,您需要通过指示 IconResourceIndex 属性中的偏移量来指定要使用的图标。
如果未指定图标资源,或者找不到指定的图标,则显示标准的系统图标。 若要指定不显示任何图标,请将 IconResourceIndex 属性设置为 -1。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。