Click or drag to resize
FileBasedProjectRunAutomaticTask Method (Guid, String, EventHandlerTaskStatusEventArgs, EventHandlerTaskMessageEventArgs)
Runs an automatic task on a set of files. Automatic task template IDs are defined in AutomaticTaskTemplateIds. This overload allows event handlers to be specified for task status and message events. These events support cancellation of the task.

Namespace: Sdl.ProjectAutomation.FileBased
Assembly: Sdl.ProjectAutomation.FileBased (in Sdl.ProjectAutomation.FileBased.dll) Version: 3.0.0.0 (3.1.5799.0)
Syntax
public AutomaticTask RunAutomaticTask(
	Guid[] projectFileIds,
	string taskTemplateId,
	EventHandler<TaskStatusEventArgs> statusEventHandler,
	EventHandler<TaskMessageEventArgs> messageEventHandler
)

Parameters

projectFileIds
Type: SystemGuid
The files to run the task on.
taskTemplateId
Type: SystemString
The ID of the task template (i.e. the type of task) to run.
statusEventHandler
Type: SystemEventHandlerTaskStatusEventArgs
Event handler for task status events.
messageEventHandler
Type: SystemEventHandlerTaskMessageEventArgs
Event handler for message events.

Return Value

Type: AutomaticTask
Information about the automatic task that has been run.

Implements

IProjectRunAutomaticTask(Guid, String, EventHandlerTaskStatusEventArgs, EventHandlerTaskMessageEventArgs)
Remarks
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments