C # in a Nutshell, Second Edition

SocketException CF 1.0, ECMA 1.0, serializable

System.Net.Sockets (system.dll) class

This exception represents a socket- related error.

public class SocketException : System.ComponentModel.Win32Exception { // Public Constructors public SocketException ( ); public SocketException (int errorCode ); // Protected Constructors protected SocketException (System.Runtime.Serialization.SerializationInfo serializationInfo , System.Runtime.Serialization.StreamingContext streamingContext ); // Public Instance Properties public override int ErrorCode {get; } // overrides System.Runtime.InteropServices.ExternalException }

Hierarchy

System.Object System.Exception(System.Runtime.Serialization.ISerializable) System.SystemException System.Runtime.InteropServices.ExternalException System.ComponentModel.Win32Exception SocketException

Категории