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 (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Function EndInvoke ( _
result As IAsyncResult _
) As Object
'Usage
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
abstract EndInvoke :
result:IAsyncResult -> Object
override EndInvoke :
result:IAsyncResult -> Object
public final function EndInvoke(
result : IAsyncResult
) : Object
Parameters
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.