Share via


OverflowPolicy Property

Gets or sets the overflow policy.

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

Syntax

'Declaration
Public Property OverflowPolicy As OverflowPolicy
    Get
    Set
'Usage
Dim instance As MessageBufferPolicy
Dim value As OverflowPolicy

value = instance.OverflowPolicy

instance.OverflowPolicy = value
public OverflowPolicy OverflowPolicy { get; set; }
public:
property OverflowPolicy OverflowPolicy {
    OverflowPolicy get ();
    void set (OverflowPolicy value);
}
member OverflowPolicy : OverflowPolicy with get, set
function get OverflowPolicy () : OverflowPolicy
function set OverflowPolicy (value : OverflowPolicy)

Property Value

Type: Microsoft.ServiceBus. . :: . .OverflowPolicy
Returns a OverflowPolicy that contains the overflow policy.

Remarks

The overflow policy instructs the message buffer what to do in the event that the message buffer has more messages than defined by MaxMessageCount. Currently, the only option is to wait for the amount of time allowed for in the timeout, and if the message buffer is still full after that time, to reject the message. For more information on setting message buffer policy, see How to: Configure an AppFabric Service Bus Message Buffer.

See Also

Reference

MessageBufferPolicy Class

Microsoft.ServiceBus Namespace