SnapInBase.Invoke Method (Delegate)

 

Executes the delegate on the main thread that the snap-in executes on.

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

Syntax

public object Invoke(
    Delegate method
)
public:
Object^ Invoke(
    Delegate^ method
)
member Invoke : 
        method:Delegate -> Object
Public Function Invoke (
    method As Delegate
) As Object

Parameters

  • method
    Type: System.Delegate

    A delegate to a method that uses no parameters.

Return Value

Type: System.Object

A return value from the delegate being invoked; null if the delegate has no return value.

Remarks

This method is used when a snap-in component or other code that is related to a snap-in needs to be called on the same thread that the snap-in was created on.

The method blocks until the call has been completed.

See Also

Invokeā€‚Overload
SnapInBase Class
Microsoft.ManagementConsole Namespace

Return to top