ChannelClosedException 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
| ChannelClosedException() |
Initializes a new instance of the ChannelClosedException class. |
| ChannelClosedException(Exception) |
Initializes a new instance of the ChannelClosedException class. |
| ChannelClosedException(String) |
Initializes a new instance of the ChannelClosedException class. |
| ChannelClosedException(SerializationInfo, StreamingContext) |
Initializes a new instance of the ChannelClosedException class with serialized data. |
| ChannelClosedException(String, Exception) |
Initializes a new instance of the ChannelClosedException class. |
ChannelClosedException()
Initializes a new instance of the ChannelClosedException class.
public:
ChannelClosedException();
public ChannelClosedException ();
Public Sub New ()
Applies to
ChannelClosedException(Exception)
Initializes a new instance of the ChannelClosedException class.
public:
ChannelClosedException(Exception ^ innerException);
public ChannelClosedException (Exception innerException);
public ChannelClosedException (Exception? innerException);
new System.Threading.Channels.ChannelClosedException : Exception -> System.Threading.Channels.ChannelClosedException
Public Sub New (innerException As Exception)
Parameters
- innerException
- Exception
The exception that is the cause of this exception.
Applies to
ChannelClosedException(String)
Initializes a new instance of the ChannelClosedException class.
public:
ChannelClosedException(System::String ^ message);
public ChannelClosedException (string message);
public ChannelClosedException (string? message);
new System.Threading.Channels.ChannelClosedException : string -> System.Threading.Channels.ChannelClosedException
Public Sub New (message As String)
Parameters
- message
- String
The message that describes the error.
Applies to
ChannelClosedException(SerializationInfo, StreamingContext)
Initializes a new instance of the ChannelClosedException class with serialized data.
protected:
ChannelClosedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ChannelClosedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Threading.Channels.ChannelClosedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Threading.Channels.ChannelClosedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The object that holds the serialized object data.
- context
- StreamingContext
The contextual information about the source or destination.
Applies to
ChannelClosedException(String, Exception)
Initializes a new instance of the ChannelClosedException class.
public:
ChannelClosedException(System::String ^ message, Exception ^ innerException);
public ChannelClosedException (string message, Exception innerException);
public ChannelClosedException (string? message, Exception? innerException);
new System.Threading.Channels.ChannelClosedException : string * Exception -> System.Threading.Channels.ChannelClosedException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The message that describes the error.
- innerException
- Exception
The exception that is the cause of this exception.