NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ISynchronizeInvoke.Invoke

Executes the given delegate on the main thread that this object executes on. Exceptions that are raised during the call will be propapgated back to the caller.

[Visual Basic]
Function Invoke( _
   ByVal method As Delegate, _
   ByVal args() As Object _
) As Object
[C#]
object Invoke(
   Delegate method,
   object[] args
);
[C++]
Object* Invoke(
   Delegate* method,
   Object* args[]
) = 0;
[JScript]
function Invoke(
   method : Delegate,
   args : Object[]
) : Object;

Parameters

method
A delegate that contains a method to be called in in the control's thread context.
args
An array of objects to pass as arguments to the given method. This can be null if no arguments are needed.

Return Value

the return value from the delegate being invoked, or null if the delegate has no return value.

See Also

ISynchronizeInvoke Interface | ISynchronizeInvoke Members | System.ComponentModel Namespace