ChannelClosedException 构造函数
定义
重载
| ChannelClosedException() |
初始化 ChannelClosedException 类的新实例。Initializes a new instance of the ChannelClosedException class. |
| ChannelClosedException(Exception) |
初始化 ChannelClosedException 类的新实例。Initializes a new instance of the ChannelClosedException class. |
| ChannelClosedException(String) |
初始化 ChannelClosedException 类的新实例。Initializes a new instance of the ChannelClosedException class. |
| ChannelClosedException(SerializationInfo, StreamingContext) |
用序列化数据初始化 ChannelClosedException 类的新实例。Initializes a new instance of the ChannelClosedException class with serialized data. |
| ChannelClosedException(String, Exception) |
初始化 ChannelClosedException 类的新实例。Initializes a new instance of the ChannelClosedException class. |
ChannelClosedException()
初始化 ChannelClosedException 类的新实例。Initializes a new instance of the ChannelClosedException class.
public:
ChannelClosedException();
public ChannelClosedException ();
Public Sub New ()
适用于
ChannelClosedException(Exception)
初始化 ChannelClosedException 类的新实例。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)
参数
- innerException
- Exception
导致此异常的异常。The exception that is the cause of this exception.
适用于
ChannelClosedException(String)
初始化 ChannelClosedException 类的新实例。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)
参数
- message
- String
描述错误的消息。The message that describes the error.
适用于
ChannelClosedException(SerializationInfo, StreamingContext)
用序列化数据初始化 ChannelClosedException 类的新实例。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)
参数
- info
- SerializationInfo
承载序列化对象数据的对象。The object that holds the serialized object data.
- context
- StreamingContext
关于来源和目标的上下文信息The contextual information about the source or destination.
适用于
ChannelClosedException(String, Exception)
初始化 ChannelClosedException 类的新实例。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)
参数
- message
- String
描述错误的消息。The message that describes the error.
- innerException
- Exception
导致此异常的异常。The exception that is the cause of this exception.