System.Messaging Reference (Document! X Sample)



System.Messaging Namespace > MessageQueue Class : SynchronizingObject Property
SynchronizingObject Property
Gets or sets the object that marshals the event-handler call resulting from a ReceiveCompleted or PeekCompleted event.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<DefaultValueAttribute()>
<MessagingDescriptionAttribute("The object used to marshal the event handler calls issued as a result of a BeginReceive or BeginPeek request.")>
Public Property SynchronizingObject As ISynchronizeInvoke
'Usage
 
Dim instance As MessageQueue
Dim value As ISynchronizeInvoke
 
instance.SynchronizingObject = value
 
value = instance.SynchronizingObject
[Browsable(false)]
[DefaultValue()]
[MessagingDescription("The object used to marshal the event handler calls issued as a result of a BeginReceive or BeginPeek request.")]
public ISynchronizeInvoke SynchronizingObject {get; set;}
[Browsable(false)]
[DefaultValue()]
[MessagingDescription("The object used to marshal the event handler calls issued as a result of a BeginReceive or BeginPeek request.")]
public:
property ISynchronizeInvoke^ SynchronizingObject {
   ISynchronizeInvoke^ get();
   void set (    ISynchronizeInvoke^ value);
}

Property Value

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

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also