ThreadHelper.BeginInvoke Method (DispatcherPriority, Action)
Schedules an action for execution on the UI thread asynchronously.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣言
Public Sub BeginInvoke ( _
priority As DispatcherPriority, _
action As Action _
)
public void BeginInvoke(
DispatcherPriority priority,
Action action
)
Parameters
- priority
Type: System.Windows.Threading.DispatcherPriority
The priority at which to run the action.
- action
Type: System.Action
The action to run.
.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.