Partager via


WindowsFormsSynchronizationContext.Send(SendOrPostCallback, Object) Méthode

Définition

Répartit un message synchrone dans un contexte de synchronisation.

public:
 override void Send(System::Threading::SendOrPostCallback ^ d, System::Object ^ state);
public override void Send(System.Threading.SendOrPostCallback d, object state);
public override void Send(System.Threading.SendOrPostCallback d, object? state);
override this.Send : System.Threading.SendOrPostCallback * obj -> unit
Public Overrides Sub Send (d As SendOrPostCallback, state As Object)

Paramètres

d
SendOrPostCallback

Délégué SendOrPostCallback à appeler.

state
Object

Objet transmis au délégué.

Exceptions

Le thread de destination n’existe plus.

Remarques

Si le thread de destination n’existe plus ou si la valeur de sa Thread.IsAlive propriété est false, la Send méthode déclenche un InvalidAsynchronousStateException. Il incombe à l’appelant de déterminer quelle action supplémentaire entreprendre.

S’applique à

Voir aussi