Click or drag to resize

TaskManagerAddTask Method

Adds a task to a queue.

Namespace:  MFiles.VAF.AppTasks
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
Syntax
public string AddTask(
	Vault vault,
	string queueId,
	string taskType,
	TaskDirective directive = null,
	Nullable<DateTime> activationTime = null
)

Parameters

vault
Type: Vault
The vault instance to queue the task with.
queueId
Type: SystemString
The queue to add the task to.
taskType
Type: SystemString
The task type.
directive (Optional)
Type: MFiles.VAF.AppTasksTaskDirective
The task directive.
activationTime (Optional)
Type: SystemNullableDateTime
The time the task should be activated (available for processing), defaults to immediately.

Return Value

Type: String
The id of the queued task.
See Also