共用方式為


MSMQQueueInfo.IsWorldReadable

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The IsWorldReadable property of the MSMQQueueInfo object indicates whether all members of the Everyone user group can read the messages in the queue.

This property is superseded by the MSMQQueueInfo.IsWorldReadable2 property in MSMQ 3.0.

Data type: Short
Run-time access: Read-only
Property IsWorldReadable As Short  

Property Value

A Short set to one of the following values:

1

All members of the Everyone user group can read messages in the queue and its queue journal.

0

Default. Only the owner of the queue can read the messages in the queue.

Remarks

Message Queuing initially sets this property based on the IsWorldReadable argument of the MSMQQueueInfo.Create method. After the queue is created, Message Queuing resets IsWorldReadable whenever the security descriptor of the queue is changed to allow or disallow read access to all members of the Everyone user group. For information on security descriptors and access control, see Access Control.

This property has no effect on sending messages to the queue.

Equivalent API Function Property

There is no equivalent API function property for this property.

Requirements

Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.

Windows 95/98/Me: Included in Windows 95 and later.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib.

See Also

MSMQQueueInfo
MSMQQueueInfo.Create