ConnectionLostException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConnectionLostException() |
Initializes a new instance of the ConnectionLostException class. |
ConnectionLostException(String) |
Initializes a new instance of the ConnectionLostException class. |
ConnectionLostException(SerializationInfo, StreamingContext) |
Initializes a new instance of the ConnectionLostException class. |
ConnectionLostException(String, Exception) |
Initializes a new instance of the ConnectionLostException class. |
ConnectionLostException()
Initializes a new instance of the ConnectionLostException class.
public ConnectionLostException ();
Public Sub New ()
Applies to
ConnectionLostException(String)
Initializes a new instance of the ConnectionLostException class.
public ConnectionLostException (string message);
public ConnectionLostException (string? message);
new StreamJsonRpc.ConnectionLostException : string -> StreamJsonRpc.ConnectionLostException
Public Sub New (message As String)
Parameters
- message
- String
The message that describes the error.
Applies to
ConnectionLostException(SerializationInfo, StreamingContext)
Initializes a new instance of the ConnectionLostException class.
protected ConnectionLostException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new StreamJsonRpc.ConnectionLostException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> StreamJsonRpc.ConnectionLostException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Serialization info.
- context
- StreamingContext
Streaming context.
Applies to
ConnectionLostException(String, Exception)
Initializes a new instance of the ConnectionLostException class.
public ConnectionLostException (string message, Exception innerException);
public ConnectionLostException (string? message, Exception? innerException);
new StreamJsonRpc.ConnectionLostException : string * Exception -> StreamJsonRpc.ConnectionLostException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.