QueueAccessMode QueueAccessMode QueueAccessMode QueueAccessMode Enum

定义

在创建时为 MessageQueue 指定访问模式。Specifies the access mode for a MessageQueue at creation time.

public enum class QueueAccessMode
public enum QueueAccessMode
type QueueAccessMode = 
Public Enum QueueAccessMode
继承
QueueAccessModeQueueAccessModeQueueAccessModeQueueAccessMode

字段

Peek Peek Peek Peek 32

队列仅可以查看消息。The queue can only peek at messages.

PeekAndAdmin PeekAndAdmin PeekAndAdmin PeekAndAdmin 160

队列可以查看消息。The queue can peek at messages. 消息也可以被清除。It can also be purged.

Receive Receive Receive Receive 1

队列可以查看或接收消息。The queue can peek at or receive messages.

ReceiveAndAdmin ReceiveAndAdmin ReceiveAndAdmin ReceiveAndAdmin 129

队列可以接收消息。The queue can receive messages. 消息也可以被清除。It can also be purged.

Send Send Send Send 2

队列仅可以发送消息。The queue can only send messages.

SendAndReceive SendAndReceive SendAndReceive SendAndReceive 3

队列可以查看、接收或发送消息。The queue can peek at, receive, or send messages.

注解

创建时MessageQueue,如果指定无访问模式,则访问模式默认为QueueAccessMode.SendAndReceiveWhen creating a MessageQueue, if no access mode is specified, the access mode defaults to QueueAccessMode.SendAndReceive.

一次MessageQueue创建后,访问模式不能更改。Once the MessageQueue is created, the access mode cannot be changed.

适用于