Export (0) Print
Expand All

ActionsPane.Invoke Method (Delegate, Object[])

Executes the specified delegate, on the thread that owns the actions pane's underlying window handle, with the specified list of arguments.

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

Object Invoke(
	Delegate method,
	Object[] args
)

Parameters

method
Type: System.Delegate

A delegate to a method that takes parameters of the same number and type that are contained in the args parameter.

args
Type: System.Object[]

An array of objects to pass as arguments to the specified method. This parameter can be null if the method takes no arguments.

Return Value

Type: System.Object
An Object that contains the return value from the delegate being invoked, or null if the delegate has no return value.

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

Show:
© 2014 Microsoft