Click or drag to resize
WebSyncHelperCreateTask Method
Creates task.

Namespace: CMS.WebFarmSync
Assembly: CMS.WebFarmSync (in CMS.WebFarmSync.dll) Version: 8.2.23
Syntax
C#
public static bool CreateTask(
	string taskType,
	string taskTarget,
	string taskTextData,
	BinaryData taskBinaryData,
	int serverId = 0
)

Parameters

taskType
Type: SystemString
Task type
taskTarget
Type: SystemString
Target
taskTextData
Type: SystemString
Task text data (such as code name, ID etc.)
taskBinaryData
Type: CMS.CoreBinaryData
Task binary data (for attachments etc.)
serverId (Optional)
Type: SystemInt32
If (serverId > 0) then create task only for a specific server, otherwise create the task for all enabled servers

Return Value

Type: Boolean
Returns true if the task was created (web farm is set up and task was allowed)
See Also