Header menu logo fable-electron-docs-api

Task Type

Constructors

Constructor Description

Task(program, arguments, title, description, iconPath, iconIndex, ?workingDirectory)

Full Usage: Task(program, arguments, title, description, iconPath, iconIndex, ?workingDirectory)

Parameters:
    program : string - Path of the program to execute, usually you should specify process.execPath which opens the current program.
    arguments : string - The command line arguments when program is executed.
    title : string - The string to be displayed in a JumpList.
    description : string - Description of this task.
    iconPath : string - The absolute path to an icon to be displayed in a JumpList, which can be an arbitrary resource file that contains an icon. You can usually specify process.execPath to show the icon of the program.
    iconIndex : float - The icon index in the icon file. If an icon file consists of two or more icons, set this value to identify the icon. If an icon file consists of one icon, this value is 0.
    ?workingDirectory : string - The working directory. Default is empty.

Returns: Task
program : string

Path of the program to execute, usually you should specify process.execPath which opens the current program.

arguments : string

The command line arguments when program is executed.

title : string

The string to be displayed in a JumpList.

description : string

Description of this task.

iconPath : string

The absolute path to an icon to be displayed in a JumpList, which can be an arbitrary resource file that contains an icon. You can usually specify process.execPath to show the icon of the program.

iconIndex : float

The icon index in the icon file. If an icon file consists of two or more icons, set this value to identify the icon. If an icon file consists of one icon, this value is 0.

?workingDirectory : string

The working directory. Default is empty.

Returns: Task

Instance members

Instance member Description

this.arguments

Full Usage: this.arguments

The command line arguments when program is executed.

this.description

Full Usage: this.description

Description of this task.

this.iconIndex

Full Usage: this.iconIndex

The icon index in the icon file. If an icon file consists of two or more icons, set this value to identify the icon. If an icon file consists of one icon, this value is 0.

this.iconPath

Full Usage: this.iconPath

The absolute path to an icon to be displayed in a JumpList, which can be an arbitrary resource file that contains an icon. You can usually specify process.execPath to show the icon of the program.

this.program

Full Usage: this.program

Path of the program to execute, usually you should specify process.execPath which opens the current program.

this.title

Full Usage: this.title

The string to be displayed in a JumpList.

this.workingDirectory

Full Usage: this.workingDirectory

The working directory. Default is empty.

Type something to start searching.