SocketAsyncEventArgs.Buffer Proprietà

Definizione

Ottiene il buffer di dati da utilizzare con un metodo socket asincrono.

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

Valore della proprietà

Byte[]

Matrice Byte che rappresenta il buffer di dati da utilizzare con un metodo socket asincrono.

Commenti

Questa proprietà ottiene il buffer di dati attualmente associato all'istanza SocketAsyncEventArgs di . Per impostare il buffer, è necessario utilizzare il SetBuffer metodo .

Questa proprietà viene usata con i Socket.AcceptAsyncmetodi , Socket.ConnectAsyncSocket.ReceiveAsyncSocket.ReceiveFromAsync, , Socket.ReceiveMessageFromAsync, Socket.SendAsync, e Socket.SendToAsync .

Si applica a

Vedi anche