SocketAsyncEventArgs.Buffer Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk