Click or drag to resize
WebFarmTaskInfoProvider.DeleteServerMemoryTasks Method
Deletes all memory task for specified server created before given date. If server is not specified (equals zero), deletes tasks of all servers. If date is not specified, deletes tasks before current date time.

Namespace: CMS.WebFarmSync
Assembly: CMS.WebFarmSync (in CMS.WebFarmSync.dll) Version: 11.0.0
Syntax
C#
public static void DeleteServerMemoryTasks(
	int serverId = 0,
	Nullable<DateTime> taskCreated = null
)

Parameters

serverId (Optional)
Type: System.Int32
Server ID.
taskCreated (Optional)
Type: System.Nullable<DateTime>
Tasks created before this date time will be deleted. If null, current date time is used.
See Also