Try Playground
Show / Hide Table of Contents

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(Int32)

Overloaded constructor

Declaration
public ConnectionException(int errorCode)
Parameters
Type Name Description
System.Int32 errorCode

assigned errorcode

ConnectionException(Int32, String)

Overloaded constructor

Declaration
public ConnectionException(int errorCode, string reason)
Parameters
Type Name Description
System.Int32 errorCode

assigned errorcode

System.String reason

exception message

ConnectionException(Int32, String, String)

Overloaded constructor

Declaration
public ConnectionException(int errorCode, string reason, string stackTrace)
Parameters
Type Name Description
System.Int32 errorCode

assigned errorcode

System.String reason

exception message

System.String stackTrace

stacktrace

ConnectionException(Int32, String, System.Net.IPAddress, Int32)

Overloaded constructor

Declaration
public ConnectionException(int errorCode, string reason, System.Net.IPAddress ipAddress, int port)
Parameters
Type Name Description
System.Int32 errorCode

assigned errorcode

System.String reason

exception message

System.Net.IPAddress ipAddress
System.Int32 port

ConnectionException(Int32, System.Net.IPAddress, Int32)

Overloaded constructor

Declaration
public ConnectionException(int errorCode, System.Net.IPAddress ipAddress, int port)
Parameters
Type Name Description
System.Int32 errorCode

assigned errorcode

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
Back to top Copyright © 2017 Alachisoft