SALES: 1-800-867-1380

BrokeredMessage.ForcePersistence Property

Gets or sets a value that indicates whether the message is to be persisted to the database immediately, instead of being held in memory for a short time. This property is ignored if the message is sent to a non-express queue or topic.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public bool ForcePersistence { get; set; }

Property Value

Type: System.Boolean
true if the message is to be persisted to the database immediately, instead of being held in memory for a short time; otherwise, false.

When true, forces the message to immediately be persisted to the database (stable storage), instead of in memory.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft