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.

建立之後, 就無法變更存取模式。 MessageQueueOnce the MessageQueue is created, the access mode cannot be changed.

適用於