Constructor ConnectionException
ConnectionException()
default constructor.
Declaration
public ConnectionException()
ConnectionException(String)
overloaded constructor, takes the reason as parameter.
Declaration
public ConnectionException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason |
ConnectionException(String, System.Net.IPAddress, Int32)
overloaded constructor, takes the reason, ipAddress and port as parameter.
Declaration
public ConnectionException(string reason, System.Net.IPAddress ipAddress, int port)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | |
System.Net.IPAddress | ipAddress | |
System.Int32 | port |
ConnectionException(System.Net.IPAddress, Int32)
overloaded constructor, takes the ipAddress and port as parameter.
Declaration
public ConnectionException(System.Net.IPAddress ipAddress, int port)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | ipAddress | |
System.Int32 | port |
ConnectionException(SerializationInfo, StreamingContext)
overloaded constructor, manual serialization.
Declaration
protected ConnectionException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |