Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Schedule Method (WaitCallback, Guid, DateTime, Guid)
Collapse the table of content
Expand the table of content

DefaultWorkflowSchedulerService.Schedule Method (WaitCallback, Guid, DateTime, Guid)

Adds the specified workflow instance to the pending work item queue using the specified multicast delegate, DateTime and GUIDs.

Namespace:  System.Workflow.Runtime.Hosting
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

protected internal override void Schedule(
	WaitCallback callback,
	Guid workflowInstanceId,
	DateTime whenUtc,
	Guid timerId
)

Parameters

callback
Type: System.Threading.WaitCallback

A WaitCallback multicast delegate that represents the method to run.

workflowInstanceId
Type: System.Guid

A Guid that represents the workflow instance.

whenUtc
Type: System.DateTime

The DateTime that indicates the time to begin running the thread.

timerId
Type: System.Guid

A Guid that represents the scheduled thread.

ExceptionCondition
ArgumentNullException

callback contains a null reference (Nothing in Visual Basic).

ArgumentException

workflowInstanceId or timerId is an empty GUID.

Use the WaitCallback constructor to create your delegate method to run in the new thread.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2015 Microsoft