次の方法で共有


LanguageService.EndInvoke(IAsyncResult) Method

Definition

Retrieves the result of an asynchronous call started by BeginInvoke(Delegate, Object[]).

public:
 virtual System::Object ^ EndInvoke(IAsyncResult ^ result);
public object EndInvoke (IAsyncResult result);
abstract member EndInvoke : IAsyncResult -> obj
override this.EndInvoke : IAsyncResult -> obj
Public Function EndInvoke (result As IAsyncResult) As Object

Parameters

result
IAsyncResult

[in] The IAsyncResult object returned by BeginInvoke(Delegate, Object[]).

Returns

Returns an object representing the return value from the method called by BeginInvoke(Delegate, Object[]).

Implements

Remarks

If the parse operation started by Microsoft.VisualStudio.Package.LanguageService.BeginParse has not yet completed, this method does not block until the operation is completed.

This method is not called by the default language service. You may call it if you need the return value of your parse operation.

The base method returns the result object from the operation started by Microsoft.VisualStudio.Package.LanguageService.BeginInvoke.

Applies to