This documentation is archived and is not being maintained.

ServicePoint.ReceiveBufferSize Property

Gets or sets the size of the receiving buffer for the socket used by this ServicePoint.

Namespace: System.Net
Assembly: System (in system.dll)

Public Property ReceiveBufferSize As Integer
Dim instance As ServicePoint
Dim value As Integer

value = instance.ReceiveBufferSize

instance.ReceiveBufferSize = value
/** @property */
public int get_ReceiveBufferSize ()

/** @property */
public void set_ReceiveBufferSize (int value)

public function get ReceiveBufferSize () : int

public function set ReceiveBufferSize (value : int)

Not applicable.

Property Value

A Int32 that contains the size, in bytes, of the receive buffer. The default is 8192.

Exception typeCondition


The value specified for a set operation is greater than MaxValue.

For additional information, see ReceiveBufferSize.

The following code example sets the value of this property.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0