This documentation is archived and is not being maintained.

SocketException Constructor

.NET Framework 1.1

Initializes a new instance of the SocketException class.

Overload List

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

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public SocketException();
[C++] public: SocketException();
[JScript] public function SocketException();

Initializes a new instance of the SocketException class with the specified error code.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(Integer)
[C#] public SocketException(int);
[C++] public: SocketException(int);
[JScript] public function SocketException(int);

Initializes a new instance of the SocketException class from the specified instances of the SerializationInfo and StreamingContext classes.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected SocketException(SerializationInfo, StreamingContext);
[C++] protected: SocketException(SerializationInfo*, StreamingContext);
[JScript] protected function SocketException(SerializationInfo, StreamingContext);

See Also

SocketException Class | SocketException Members | System.Net.Sockets Namespace

Show: