SocketAsyncEventArgs Properties

SocketAsyncEventArgs Properties

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The SocketAsyncEventArgs type exposes the following members.

  NameDescription
Public property AcceptSocket Gets or sets the socket to use or the socket created for accepting a connection with an asynchronous socket method.
Public property Buffer Gets the data buffer to use with an asynchronous socket method.
Public property BufferList Gets or sets an array of data buffers to use with an asynchronous socket method.
Public property BytesTransferred Gets the number of bytes transferred in the socket operation.
Public property ConnectByNameError Gets the exception in the case of a connection failure when a DnsEndPoint was used.
Public property ConnectSocket The created and connected Socket object after successful completion of the ConnectAsync method.
Public property Count Gets the maximum amount of data, in bytes, to send or receive in an asynchronous operation.
Public property LastOperation Gets the type of socket operation most recently performed with this object.
Public property Offset Gets the offset, in bytes, into the data buffer referenced by the Buffer property.
Public property RemoteEndPoint Gets or sets the remote IP or DNS endpoint for an asynchronous operation.
Public property SocketError Gets or sets the result of the asynchronous socket operation.
Public property UserToken Gets or sets a user or application object associated with this asynchronous socket operation.
Top

Show:
© 2017 Microsoft