MsmqBindingElementBase.ExactlyOnce Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets a value that specifies whether messages sent with this binding have exactly-once assurances.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

[ConfigurationPropertyAttribute("exactlyOnce", DefaultValue = true)]
public bool ExactlyOnce { get; set; }

Property Value

Type: System.Boolean

true if messages sent with this binding have exactly-once assurances; otherwise, false.

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. If delivery fails, the message is sent to the dead-letter queue depending on the DeadLetterQueue property setting. Setting ExactlyOnce to true requires the queue to be transactional.

.NET Framework
Available since 3.0
Return to top