SendBufferSize Property

Socket.SendBufferSize Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that specifies the size of the send buffer of the Socket.

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

public int SendBufferSize { get; set; }

Property Value

Type: System.Int32
An Int32 that contains the size, in bytes, of the send buffer. The default is 8192.


The value specified for a set operation is less than 0.


An error occurred when attempting to access the socket.


The Socket has been closed.

A larger buffer size might delay the recognition of connection difficulties. Consider increasing the buffer size if you are transferring large files, or you are using a high bandwidth, high latency connection (such as a satellite broadband provider.)

If you receive a SocketException, use the SocketException.ErrorCode property to obtain the specific error code. After you have obtained this code, refer to the Windows Sockets version 2 API error code documentation in the MSDN library for a detailed description of the error.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2016 Microsoft