SocketException Constructor (Int32)
Collapse the table of content
Expand the table of content

SocketException Constructor (Int32)

[ 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 specified error code.

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

public SocketException(
	int errorCode
)

Parameters

errorCode
Type: System.Int32
The error code that indicates the error that occurred.

The SocketException constructor initializes SocketException class with value specified in the errorCode.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft