MsmqBindingElementBase.ExactlyOnce 属性
定义
获取或设置一个值,该值指定随此绑定发送的消息是否具有一次性保证。Gets or sets a value that specifies whether messages sent with this binding have exactly-once assurances.
public:
property bool ExactlyOnce { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("exactlyOnce", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool ExactlyOnce { get; set; }
[<System.Configuration.ConfigurationProperty("exactlyOnce", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.ExactlyOnce : bool with get, set
Public Property ExactlyOnce As Boolean
属性值
如果随此绑定发送的消息具有一次性保证,则为 true;否则为 false。true if messages sent with this binding have exactly-once assurances; otherwise, false.
- 属性
注解
ExactlyOnce当设置为时, true 指示消息队列 (也称为 MSMQ) 确保将发送的消息传递到接收消息队列一次且只有一次。ExactlyOnce, when set to true, indicates that Message Queuing (also known as MSMQ) ensures that a sent message is delivered to the receiving message queue once and only once. 如果传递失败,则会根据属性设置将消息发送到死信队列 DeadLetterQueue 。If delivery fails, the message is sent to the dead-letter queue depending on the DeadLetterQueue property setting. 若要将 ExactlyOnce 设置为 true,则要求队列为事务性队列。Setting ExactlyOnce to true requires the queue to be transactional.