System.Net.Sockets.SocketAsyncEventArgs: Property Members

The properties of System.Net.Sockets.SocketAsyncEventArgs are listed below. For a list of all members, see the SocketAsyncEventArgs Members list.

See Also: Inherited members from System.EventArgs

Public Properties

AcceptSocketSocket.

Gets or sets the socket to use or the socket created for accepting a connection with an asynchronous socket method.

[read-only]
Bufferbyte[].

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

BufferListIList<ArraySegment<byte>>.

Gets or sets an array of data buffers to use with an asynchronous socket method.

[read-only]
BytesTransferredint.

Gets the number of bytes transferred in the socket operation.

[read-only]
ConnectByNameErrorException.

Gets the exception in the case of a connection failure when a System.Net.DnsEndPoint was used.

[read-only]
Countint.

Gets the maximum amount of data, in bytes, to send or receive in an asynchronous operation.

DisconnectReuseSocketbool.

Gets or sets a value that specifies if socket can be reused after a disconnect operation.

[read-only]
LastOperationSocketAsyncOperation.

Gets the type of socket operation most recently performed with this context object.

[read-only]
Offsetint.

Gets the offset, in bytes, into the data buffer referenced by the SocketAsyncEventArgs.Buffer property.

[read-only]
ReceiveMessageFromPacketInfoIPPacketInformation.

Gets the IP address and interface of a received packet.

RemoteEndPointSystem.Net.EndPoint.

Gets or sets the remote IP endpoint for an asynchronous operation.

SendPacketsElementsSendPacketsElement[].

Gets or sets an array of buffers to be sent for an asynchronous operation used by the Socket.SendPacketsAsync(SocketAsyncEventArgs) method.

SendPacketsFlagsTransmitFileOptions.

Gets or sets a bitwise combination of System.Net.Sockets.TransmitFileOptions values for an asynchronous operation used by the Socket.SendPacketsAsync(SocketAsyncEventArgs) method.

SendPacketsSendSizeint.

Gets or sets the size, in bytes, of the data block used in the send operation.

SocketErrorSocketError.

Gets or sets the result of the asynchronous socket operation.

SocketFlagsSocketFlags.

Gets the results of an asynchronous socket operation or sets the behavior of an asynchronous operation.

UserTokenobject.

Gets or sets a user or application object associated with this asynchronous socket operation.