Export (0) Print
Expand All

MessageQueue.SynchronizingObject Property

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)

public ISynchronizeInvoke SynchronizingObject { get; set; }
/** @property */
public ISynchronizeInvoke get_SynchronizingObject ()

/** @property */
public void set_SynchronizingObject (ISynchronizeInvoke value)

public function get SynchronizingObject () : ISynchronizeInvoke

public function set SynchronizingObject (value : ISynchronizeInvoke)

Property Value

A ISynchronizeInvoke, which represents the object that marshals the event-handler call resulting from a ReceiveCompleted or PeekCompleted event. The default is a null reference (Nothing in Visual Basic).

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.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft