Freigeben über


ClientBase<TChannel>.ChannelBase<T>.IContextChannel.AllowOutputBatching Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that instructs Silverlight 5 to store a set of messages before giving the messages to the transport.

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

Syntax

'Declaration
Private Property AllowOutputBatching As Boolean
    Implements IContextChannel.AllowOutputBatching
bool IContextChannel.AllowOutputBatching { get; set; }

Property Value

Type: System.Boolean
true if the batching of outgoing messages is allowed; otherwise, false.

Implements

IContextChannel.AllowOutputBatching

Remarks

The level of batching affects the performance of the system. When you set the value to true, you are instructing the system to hold on to this message in a local buffer to send out with other serialized messages if possible. Set the AllowOutputBatching property to true if message throughput is important; set it to false if reducing latency is important.

The value of AllowOutputBatching does not override the value of the AllowOutputBatching property that is set at the channel level. For example, if AllowOutputBatching is set to true for a particular message, that message is sent immediately regardless of the value of AllowOutputBatching. All request/reply messages are sent immediately regardless of the value of AllowOutputBatching.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.