MessageQueue::SynchronizingObject Property
.NET Framework (current version)
Gets or sets the object that marshals the event-handler call resulting from a ReceiveCompleted or PeekCompleted event.
Assembly: System.Messaging (in System.Messaging.dll)
public: [BrowsableAttribute(false)] [MessagingDescriptionAttribute("MQ_SynchronizingObject")] property ISynchronizeInvoke^ SynchronizingObject { ISynchronizeInvoke^ get(); void set(ISynchronizeInvoke^ value); }
Property Value
Type: System.ComponentModel::ISynchronizeInvoke^A ISynchronizeInvoke, which represents the object that marshals the event-handler call resulting from a ReceiveCompleted or PeekCompleted event. The default is null.
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: