Windows Dev Center

TaskScheduler.TryExecuteTaskInline Method

For apps that target Windows Phone OS 7.0 and 7.1, do not use this member in your app. If you do, your code will throw a MethodAccessException. This member is security-critical, which restricts it to internal use by the .NET Framework for Windows Phone class library.
[SECURITY CRITICAL]

Determines whether the provided Task can be executed synchronously in this call, and if it can, executes it.

Namespace:  System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
protected abstract bool TryExecuteTaskInline(
	Task task,
	bool taskWasPreviouslyQueued
)

Parameters

task
Type: System.Threading.Tasks.Task
The Task to be executed.
taskWasPreviouslyQueued
Type: System.Boolean
A Boolean denoting whether or not task has previously been queued. If this parameter is True, then the task may have been previously queued (scheduled); if False, then the task is known not to have been queued, and this call is being made in order to execute the task inline without queuing it.

Return Value

Type: System.Boolean
A Boolean value indicating whether the task was executed inline.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2015 Microsoft