次の方法で共有


IVsDataHostService.BeginInvokeOnUIThread(Delegate, Object[]) Method

Definition

Asynchronously executes a specified method on the main (UI) thread running in the Visual Studio process, with the specified list of arguments.

public:
 IAsyncResult ^ BeginInvokeOnUIThread(Delegate ^ method, ... cli::array <System::Object ^> ^ args);
public IAsyncResult BeginInvokeOnUIThread (Delegate method, params object[] args);
abstract member BeginInvokeOnUIThread : Delegate * obj[] -> IAsyncResult
Public Function BeginInvokeOnUIThread (method As Delegate, ParamArray args As Object()) As IAsyncResult

Parameters

method
Delegate

A delegate to a method that takes parameters of the same number and type that are contained in the args parameter.

args
Object[]

An array of objects to pass as arguments to the specified method. This parameter can be null if the method takes no arguments.

Returns

An IAsyncResult instance that represents the result of this operation.

Applies to