Click or drag to resize
Task Scheduler Managed Class Library

TaskEditDialog Constructor (TaskService, TaskDefinition, Boolean, Boolean, String, String)

Initializes a new instance of the TaskEditDialog class.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskSchedulerEditor (in Microsoft.Win32.TaskSchedulerEditor.dll) Version: 2.10.1
Syntax
public TaskEditDialog(
	TaskService service,
	TaskDefinition td = null,
	bool editable = true,
	bool registerOnAccept = true,
	string taskName = null,
	string taskFolder = null
)
Request Example View Source

Parameters

service
Type: Microsoft.Win32.TaskSchedulerTaskService
A TaskService instance.
td (Optional)
Type: Microsoft.Win32.TaskSchedulerTaskDefinition
An optional TaskDefinition. Leaving null creates a new task.
editable (Optional)
Type: SystemBoolean
If set to true the task will be editable in the dialog.
registerOnAccept (Optional)
Type: SystemBoolean
If set to true the task will be registered when OK is pressed.
taskName (Optional)
Type: SystemString
If set, assigns this name to the task's name field.
taskFolder (Optional)
Type: SystemString
If set, assigns this path to the task's folder.
See Also