Edit

Share via


MessageQueue.SynchronizingObject Property

Definition

Gets or sets the object that marshals the event-handler call resulting from a ReceiveCompleted or PeekCompleted event.

[System.ComponentModel.Browsable(false)]
[System.Messaging.MessagingDescription("MQ_SynchronizingObject")]
public System.ComponentModel.ISynchronizeInvoke SynchronizingObject { get; set; }

Property Value

A ISynchronizeInvoke, which represents the object that marshals the event-handler call resulting from a ReceiveCompleted or PeekCompleted event. The default is null.

Attributes

Remarks

A ReceiveCompleted or PeekCompleted event results from a BeginReceive or BeginPeek request, respectively, to a specific thread. 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.

Typically, the synchronizing object marshals a method call into a single thread.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also