ServicePoint.ReceiveBufferSize Property

Note: This property is new in the .NET Framework version 2.0.

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

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

property int ReceiveBufferSize {
	int get ();
	void set (int value);
/** @property */
public int get_ReceiveBufferSize ()

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

public function get ReceiveBufferSize () : int

public function set ReceiveBufferSize (value : int)

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 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions