LanguageService.EndInvoke Method

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

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

Syntax

'宣言
Public Function EndInvoke ( _
    result As IAsyncResult _
) As Object
'使用
Dim instance As LanguageService
Dim result As IAsyncResult
Dim returnValue As Object

returnValue = instance.EndInvoke(result)
public Object EndInvoke(
    IAsyncResult result
)
public:
virtual Object^ EndInvoke(
    IAsyncResult^ result
) sealed
public final function EndInvoke(
    result : IAsyncResult
) : Object

Parameters

Return Value

Type: System.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.

Permissions

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace