SynchronizationContext.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.

When overridden in a derived class, dispatches a synchronous message to a synchronization context.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

abstract Send : 
        d:SendOrPostCallback *
        state:Object -> unit
override Send : 
        d:SendOrPostCallback *
        state:Object -> unit

Parameters

d
Type: System.Threading.SendOrPostCallback

The SendOrPostCallback delegate to call.

state
Type: System.Object

The object passed to the delegate.

Exception Condition
NotSupportedException

The method was called in a Windows Store app. The implementation of SynchronizationContext for Windows Store apps does not support the Send method.

The Send method starts a synchronous request to send a message.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: