MessageQueue.SynchronizingObject Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

[BrowsableAttribute(false)]
[MessagingDescriptionAttribute("MQ_SynchronizingObject")]
public ISynchronizeInvoke SynchronizingObject { get; set; }

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
Return to top
Show: