Share via


JumpTask.IconResourceIndex Property

Gets or sets the zero-based index of an icon embedded in a resource.

Namespace:  Microsoft.Windows.Shell
Assembly:  Microsoft.Windows.Shell (in Microsoft.Windows.Shell.dll)

Syntax

'Declaration
Public Property IconResourceIndex As Integer
public int IconResourceIndex { get; set; }
public:
property int IconResourceIndex {
    int get ();
    void set (int value);
}
member IconResourceIndex : int with get, set
function get IconResourceIndex () : int
function set IconResourceIndex (value : int)

Property Value

Type: System.Int32
The zero-based index of the icon, or -1 if no icon is used. The default is 0.

Remarks

An icon used with a JumpTask must be available as a native resource. If multiple icons are available in a DLL or executable file, you specify the one to use by indicating an offset in the IconResourceIndex property.

If no icon resource is specified, or if the specified icon is not found, the standard system icon is displayed. To specify that no icon is displayed, set the IconResourceIndex property to -1.

.NET Framework Security

See Also

Reference

JumpTask Class

Microsoft.Windows.Shell Namespace

IconResourcePath