SynchronizationContext.Send(SendOrPostCallback, Object) Méthode

Définition

Lors d’une substitution dans une classe dérivée, distribue un message synchrone à un contexte de synchronisation.

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

Paramètres

d
SendOrPostCallback

Délégué SendOrPostCallback à appeler.

state
Object

Objet passé au délégué.

Exceptions

La méthode a été appelée dans une application Windows Store. L'implémentation de SynchronizationContext pour les applications Windows Store ne prend pas en charge la méthode Send(SendOrPostCallback, Object).

Remarques

La Send méthode démarre une requête synchrone pour envoyer un message.

S’applique à