SocketAsyncEventArgs.Buffer Property

 

Gets the data buffer to use with an asynchronous socket method.

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

public byte[] Buffer { get; }

Property Value

Type: System.Byte[]

A Byte array that represents the data buffer to use with an asynchronous socket method.

This property gets the data buffer currently associated with the SocketAsyncEventArgs instance. To set the buffer, the SetBuffer method must be used.

This property is used with the Socket.AcceptAsync, Socket.ConnectAsync, Socket.ReceiveAsync, Socket.ReceiveFromAsync, Socket.ReceiveMessageFromAsync, Socket.SendAsync, and Socket.SendToAsync methods.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: