System.Windows.Forms.WindowsFormsSynchronizationContext.Send Method

Dispatches a synchronous message to a synchronization context

Syntax

public override void Send (System.Threading.SendOrPostCallback d, object state)

Parameters

d
The System.Threading.SendOrPostCallback delegate to call.
state
The object passed to the delegate.

Remarks

If the destination thread no longer exists or the value of its System.Threading.Thread.IsAlive property is false, the WindowsFormsSynchronizationContext.Send(System.Threading.SendOrPostCallback, object) method raises an System.ComponentModel.InvalidAsynchronousStateException. It is up to the caller to determine what further action to take.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0