MessageQueue.SynchronizingObject Propriedade
Definição
Obtém ou define o objeto que realiza marshal da chamada do manipulador de eventos resultante de um evento ReceiveCompleted ou PeekCompleted.Gets or sets the object that marshals the event-handler call resulting from a ReceiveCompleted or PeekCompleted event.
public:
property System::ComponentModel::ISynchronizeInvoke ^ SynchronizingObject { System::ComponentModel::ISynchronizeInvoke ^ get(); void set(System::ComponentModel::ISynchronizeInvoke ^ value); };
[System.ComponentModel.Browsable(false)]
[System.Messaging.MessagingDescription("MQ_SynchronizingObject")]
public System.ComponentModel.ISynchronizeInvoke SynchronizingObject { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Messaging.MessagingDescription("MQ_SynchronizingObject")>]
member this.SynchronizingObject : System.ComponentModel.ISynchronizeInvoke with get, set
Public Property SynchronizingObject As ISynchronizeInvoke
Valor da propriedade
A ISynchronizeInvoke , que representa o objeto que realiza marshaling da chamada de manipulador de eventos resultante de um ReceiveCompleted PeekCompleted evento ou.A ISynchronizeInvoke, which represents the object that marshals the event-handler call resulting from a ReceiveCompleted or PeekCompleted event. O padrão é null.The default is null.
- Atributos
Comentários
ReceiveCompleted PeekCompleted Os resultados de um evento ou de uma BeginReceive BeginPeek solicitação ou, respectivamente, para um thread específico.A ReceiveCompleted or PeekCompleted event results from a BeginReceive or BeginPeek request, respectively, to a specific thread. Normalmente, o SynchronizingObject é definido quando seu componente relacionado é colocado dentro de um controle ou formulário, porque esses componentes estão associados a um thread específico.Typically, the SynchronizingObject is set when its related component is placed inside a control or a form, because those components are bound to a specific thread.
Normalmente, o objeto de sincronização empacota uma chamada de método em um único thread.Typically, the synchronizing object marshals a method call into a single thread.