LanguageService.EndInvoke Method (IAsyncResult)


Retrieves the result of an asynchronous call started by LanguageService.BeginInvoke.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public object EndInvoke(
	IAsyncResult result


Type: System.IAsyncResult

[in] The IAsyncResult object returned by LanguageService.BeginInvoke.

Return Value

Type: System.Object

Returns an object representing the return value from the method called by LanguageService.BeginInvoke.

If the parse operation started by 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 LanguageService.BeginInvoke.

Return to top