Partager via


VsTaskLibraryHelper.IsUIThreadContext(VsTaskRunContext) Method

Definition

Gets a value indicating whether the specified context represents UI thread work.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsUIThreadContext(Microsoft::VisualStudio::Shell::VsTaskRunContext context);
public:
[System::Runtime::CompilerServices::Extension]
 static bool IsUIThreadContext(Microsoft::VisualStudio::Shell::VsTaskRunContext context);
public static bool IsUIThreadContext (this Microsoft.VisualStudio.Shell.VsTaskRunContext context);
static member IsUIThreadContext : Microsoft.VisualStudio.Shell.VsTaskRunContext -> bool
<Extension()>
Public Function IsUIThreadContext (context As VsTaskRunContext) As Boolean

Parameters

context
VsTaskRunContext

The context.

Returns

true if the context represents work on the UI thread.

Applies to