共用方式為


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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣告
Public Function EndInvoke ( _
    result As IAsyncResult _
) As Object
public Object EndInvoke(
    IAsyncResult result
)

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.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace