Buffer Property

SocketAsyncEventArgs.Buffer Property

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

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

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.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.

The Buffer property is used with the Socket.ConnectAsync, Socket.ReceiveAsync, and Socket.SendAsync methods.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft