Executes the specified delegate on the thread that owns the control's underlying window handle.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overloads Function Invoke( _
ByVal method As System.Delegate _
) As System.Object |
| C# | |
|---|
public System.object Invoke(
System.Delegate method
) |
Parameters
- method
- A delegate that contains a method to be called in the control's thread context.
Return Value
The return value from the delegate being invoked, or null if the delegate has no return value.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also