VsTaskLibraryHelper.IsUIThreadContext(VsTaskRunContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.