共用方式為


ActionsPane.Invoke Method (Delegate)

Executes the specified delegate on the thread that owns the actions pane's underlying window handle.

Namespace:  Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
Function Invoke ( _
    method As Delegate _
) As Object
Object Invoke(
    Delegate method
)

Parameters

  • method
    Type: System.Delegate

    A delegate that contains a method to be called in the actions pane's thread context.

Return Value

Type: System.Object
The return value from the delegate being invoked, or nulla null reference (Nothing in Visual Basic) if the delegate has no return value.

Remarks

This method provides the same functionality as the Control.Invoke(Delegate) method. For more information about using this method, see Control.Invoke(Delegate).

.NET Framework Security

See Also

Reference

ActionsPane Interface

Invoke Overload

Microsoft.Office.Tools Namespace

Other Resources

Actions Pane Overview