Partager via


LanguageService.EndInvoke Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Public Function EndInvoke ( _
    result As IAsyncResult _
) As Object
public Object EndInvoke(
    IAsyncResult result
)
public:
virtual Object^ EndInvoke(
    IAsyncResult^ result
) sealed
abstract EndInvoke : 
        result:IAsyncResult -> Object  
override EndInvoke : 
        result:IAsyncResult -> Object
public final function EndInvoke(
    result : IAsyncResult
) : Object

Parameters

Return Value

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

Implements

ISynchronizeInvoke.EndInvoke(IAsyncResult)

Remarks

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.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace