TplExtensions.WaitWithoutInlining Method
Wait on a task without possibly inlining it to the current thread.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub WaitWithoutInlining ( _
task As Task _
)
public static void WaitWithoutInlining(
this Task task
)
[ExtensionAttribute]
public:
static void WaitWithoutInlining(
Task^ task
)
static member WaitWithoutInlining :
task:Task -> unit
public static function WaitWithoutInlining(
task : Task
)
Parameters
task
Type: System.Threading.Tasks.TaskThe task to wait on.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Task. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.