PeekAction 枚举

定义

指示是查看队列中的当前消息还是下一条消息。Indicates whether to peek the current message in a queue, or the next message.

public enum class PeekAction
public enum PeekAction
type PeekAction = 
Public Enum PeekAction
继承
PeekAction

字段

Current -2147483648

查看队列中的当前消息。Peek at the current message in the queue.

Next -2147483647

查看队列中的下一条消息。Peek at the next message in the queue.

注解

使用带有BeginPeek(TimeSpan, Cursor, PeekAction, Object, AsyncCallback)和的Peek(TimeSpan, Cursor, PeekAction)枚举来指示是要查看队列中的当前消息还是下一条消息。 PeekActionUse the PeekAction enumeration with BeginPeek(TimeSpan, Cursor, PeekAction, Object, AsyncCallback) and Peek(TimeSpan, Cursor, PeekAction) to indicate whether you want to peek at the current message in the queue, or the next message.

适用于