SendOrPostCallback Delegar
Definição
Representa um método a ser chamado quando uma mensagem deve ser distribuída em um contexto de sincronização.Represents a method to be called when a message is to be dispatched to a synchronization context.
public delegate void SendOrPostCallback(System::Object ^ state);
public delegate void SendOrPostCallback(object state);
public delegate void SendOrPostCallback(object? state);
type SendOrPostCallback = delegate of obj -> unit
Public Delegate Sub SendOrPostCallback(state As Object)
Parâmetros
- state
- Object
O objeto passado ao delegado.The object passed to the delegate.
Comentários
SendOrPostCallback representa um método de retorno de chamada que você deseja executar quando uma mensagem deve ser expedida para um contexto de sincronização.SendOrPostCallback represents a callback method that you want to execute when a message is to be dispatched to a synchronization context. Crie o delegado passando o método de retorno de chamada para o SendOrPostCallback Construtor.Create the delegate by passing your callback method to the SendOrPostCallback constructor. Seu método deve ter a assinatura mostrada aqui.Your method must have the signature shown here.
Métodos de Extensão
| GetMethodInfo(Delegate) |
Obtém um objeto que representa o método representado pelo delegado especificado.Gets an object that represents the method represented by the specified delegate. |