System.Net.Sockets.SocketAsyncEventArgs Members

The members of System.Net.Sockets.SocketAsyncEventArgs are listed below.

See Also: Inherited members from System.EventArgs

Public Constructors

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.

Public Methods

Dispose()

Releases the unmanaged resources used by the System.Net.Sockets.SocketAsyncEventArgs instance and optionally disposes of the managed resources.

Finalize()

Frees resources used by the System.Net.Sockets.SocketAsyncEventArgs class.

SetBuffer(int, int)

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

SetBuffer(byte[], int, int)

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

Protected Methods

OnCompleted(SocketAsyncEventArgs)

Represents a method that is called when an asynchronous operation completes.

Public Events

Completed

The event used to complete an asynchronous operation.

Explicitly Implemented Interface Members

IDisposable.DisposeDocumentation for this section has not yet been entered.