WindowsFormsSynchronizationContext.Send(SendOrPostCallback, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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é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
- SynchronizationContext
- Vue d’ensemble du modèle asynchrone basé sur les événements