Export (0) Print
Expand All

MessageQueue.DenySharedReceive Property

Gets or sets a value indicating whether this MessageQueue has exclusive access to receive messages from the Message Queuing queue.

[Visual Basic]
Public Property DenySharedReceive As Boolean
[C#]
public bool DenySharedReceive {get; set;}
[C++]
public: __property bool get_DenySharedReceive();
public: __property void set_DenySharedReceive(bool);
[JScript]
public function get DenySharedReceive() : Boolean;
public function set DenySharedReceive(Boolean);

Property Value

true if this MessageQueue has exclusive rights to receive messages from the queue; otherwise, false. The default is false.

Remarks

DenySharedReceive specifies the shared mode of the queue referenced by this MessageQueue. Set DenySharedReceive to true to indicate that only this MessageQueue should have access to peek or receive messages from the queue with the specified Path. If another MessageQueue or another application is associated with the same queue resource, that instance or application will not be able to peek or receive messages, but it can still send them.

If DenySharedReceive is false, the queue is available to multiple applications for sending, peeking, or receiving messages.

The following table shows whether this property is available in various Workgroup modes.

Workgroup Mode Available
Local computer Yes
Local computer + direct format name Yes
Remote computer Yes
Remote computer + direct format name Yes

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace | MessageQueue | EnableConnectionCache

Show:
© 2014 Microsoft