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.
Assembly: mscorlib (in mscorlib.dll)
[SECURITY CRITICAL]
Namespace:
System.Threading.Tasks[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether the provided Task can be executed synchronously in this call, and if it can, executes it.
Assembly: mscorlib (in mscorlib.dll)
'Declaration <SecurityCriticalAttribute> _ Protected MustOverride Function TryExecuteTaskInline ( _ task As Task, _ taskWasPreviouslyQueued As Boolean _ ) As Boolean
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.
Show: