SocketException Constructor
Collapse the table of content
Expand the table of content

SocketException Constructor

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

Initializes a new instance of the SocketException class with the last operating system error code.

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

'Declaration
Public Sub New

The SocketException constructor sets the ErrorCode property to the last operating system socket error that occurred.

For more information about socket error codes, see the SocketError.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft