Name

SocketException

Synopsis

This exception represents a socket-related error.

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

Hierarchy

System.ObjectSystem.Exception(System.Runtime.Serialization.ISerializable)System.SystemExceptionSystem.Runtime.InteropServices.ExternalExceptionSystem.ComponentModel.Win32ExceptionSocketException

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.