WindowsFormsSynchronizationContext::Send Method (SendOrPostCallback^, Object^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Dispatches a synchronous message to a synchronization context

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

public:
virtual void Send(
	SendOrPostCallback^ d,
	Object^ state
) override

Parameters

d
Type: System.Threading::SendOrPostCallback^

The SendOrPostCallback delegate to call.

state
Type: System::Object^

The object passed to the delegate.

Exception Condition
InvalidAsynchronousStateException

The destination thread no longer exists.

If the destination thread no longer exists or the value of its Thread::IsAlive property is false, the Send method raises an InvalidAsynchronousStateException. It is up to the caller to determine what further action to take.

.NET Framework
Available since 2.0
Return to top
Show: