SocketAsyncEventArgs Constructor
Collapse the table of content
Expand the table of content

SocketAsyncEventArgs Constructor

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

Creates an empty SocketAsyncEventArgs instance.

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

public SocketAsyncEventArgs()

After calling this constructor all properties will have their default values:

  • Object references will be null

  • Properties that return an integer will return zero.

  • The LastOperation property will be equal to None.

The caller must set the appropriate properties prior to passing the object to the appropriate asynchronous socket method (ConnectAsync, ReceiveAsync, or SendAsync).

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft