Export (0) Print
Expand All

UdpAnySourceMulticastClient.SendBufferSize Property

.NET Framework 4.5

Note: This API is now obsolete.

Gets or sets the size, in bytes, of the send buffer of the Socket used for multicast send operations on this UdpAnySourceMulticastClient instance.

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

[ObsoleteAttribute("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", 
	true)]
public int SendBufferSize { get; set; }

Property Value

Type: System.Int32
Returns Int32.
The size, in bytes, of the send buffer.

ExceptionCondition
ArgumentOutOfRangeException

The buffer size specified is less than 0.

InvalidOperationException

The multicast group has not yet been joined.

ObjectDisposedException

The UdpAnySourceMulticastClient has been disposed.

The SendBufferSize property gets or sets the size, in bytes, of the send buffer of the underlying Socket used for multicast send operations on this UdpAnySourceMulticastClient instance.

calls to the BeginSendToGroup or BeginSendTo methods will take longer to call the callback depending on the value of the SendBufferSize property if the send buffer is full. The SendBufferSize property only controls whether the user's buffer stays locked in physical memory until the send completes.

The default size of the send buffer on Windows is 8,192 bytes.

.NET Framework

Obsolete (does not compile) in 4.5.2 and later

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft