BinaryMessageEncodingElement.MaxSessionSize Property

 

Gets or sets a value that specifies the size, in bytes, of the buffer used for encoding.

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

[ConfigurationPropertyAttribute("maxSessionSize", DefaultValue = 2048)]
[IntegerValidatorAttribute(MinValue = 0)]
public int MaxSessionSize { get; set; }

Property Value

Type: System.Int32

The size, in bytes, of the buffer used for encoding. The default is 2048.

A larger buffer increases encoding speed at the expense of the size of the working set.

.NET Framework
Available since 3.0
Return to top
Show: