ActionsPane.Invoke Method (Delegate, array<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)
Syntax
'Declaration
Function Invoke ( _
method As Delegate, _
args As Object() _
) As Object
Object Invoke(
Delegate method,
Object[] args
)
Parameters
method
Type: System.DelegateA delegate to a method that takes parameters of the same number and type that are contained in the args parameter.
args
Type: array<System.Object[]An array of objects to pass as arguments to the specified method. This parameter can be nulla null reference (Nothing in Visual Basic) if the method takes no arguments.
Return Value
Type: System.Object
An Object that contains 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, array<Object[]) method. For more information about using this method, see Control.Invoke(Delegate, array<Object[]).
.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.
See Also
Reference
Microsoft.Office.Tools Namespace