ChannelClosedException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ChannelClosedException() |
初始化 ChannelClosedException 类的新实例。 |
ChannelClosedException(Exception) |
初始化 ChannelClosedException 类的新实例。 |
ChannelClosedException(String) |
初始化 ChannelClosedException 类的新实例。 |
ChannelClosedException(SerializationInfo, StreamingContext) |
已过时.
用序列化数据初始化 ChannelClosedException 类的新实例。 |
ChannelClosedException(String, Exception) |
初始化 ChannelClosedException 类的新实例。 |
ChannelClosedException()
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
初始化 ChannelClosedException 类的新实例。
public:
ChannelClosedException();
public ChannelClosedException ();
Public Sub New ()
适用于
ChannelClosedException(Exception)
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
初始化 ChannelClosedException 类的新实例。
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
导致此异常的异常。
适用于
ChannelClosedException(String)
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
初始化 ChannelClosedException 类的新实例。
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
描述错误的消息。
适用于
ChannelClosedException(SerializationInfo, StreamingContext)
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
用序列化数据初始化 ChannelClosedException 类的新实例。
protected:
ChannelClosedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ChannelClosedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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
承载序列化对象数据的对象。
- context
- StreamingContext
关于来源和目标的上下文信息
- 属性
适用于
ChannelClosedException(String, Exception)
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
- Source:
- ChannelClosedException.cs
初始化 ChannelClosedException 类的新实例。
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
描述错误的消息。
- innerException
- Exception
导致此异常的异常。