संपादित करें

इसके माध्यम से साझा किया गया


SocketAsyncEventArgs.Buffer Property

Definition

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

public:
 property cli::array <System::Byte> ^ Buffer { cli::array <System::Byte> ^ get(); };
public byte[] Buffer { get; }
public byte[]? Buffer { get; }
member this.Buffer : byte[]
Public ReadOnly Property Buffer As Byte()

Property Value

Byte[]

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

Remarks

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.

Applies to

See also