SnapInBase.EndInvoke Method (IAsyncResult)

 

Waits until the process that was started by calling BeginInvoke completes. This method then retrieves the return value of the asynchronous operation identified by the result parameter.

Namespace:   Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

Syntax

public object EndInvoke(
    IAsyncResult result
)
public:
virtual Object^ EndInvoke(
    IAsyncResult^ result
) sealed
abstract EndInvoke : 
        result:IAsyncResult -> Object
override EndInvoke : 
        result:IAsyncResult -> Object
Public Function EndInvoke (
    result As IAsyncResult
) As Object

Parameters

Return Value

Type: System.Object

The return value that is generated by the asynchronous operation.

Implements

ISynchronizeInvoke.EndInvoke(IAsyncResult)

Exceptions

Exception Condition
ArgumentNullException

The result parameter is a null valued reference (Nothing in Visual Basic .NET).

ArgumentException

The object in the result parameter was not created by a preceding call of the BeginInvoke method from the same snap-in.

See Also

SnapInBase Class
Microsoft.ManagementConsole Namespace

Return to top