HubException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
HubException() |
初始化 HubException 类的新实例。 |
HubException(String) |
用指定的错误消息初始化 HubException 类的新实例。 |
HubException(SerializationInfo, StreamingContext) |
已过时.
初始化 HubException 类的新实例。 |
HubException(String, Exception) |
使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 HubException 类的新实例。 |
HubException()
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
初始化 HubException 类的新实例。
public:
HubException();
public HubException ();
Public Sub New ()
适用于
HubException(String)
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
用指定的错误消息初始化 HubException 类的新实例。
public:
HubException(System::String ^ message);
public HubException (string message);
public HubException (string? message);
new Microsoft.AspNetCore.SignalR.HubException : string -> Microsoft.AspNetCore.SignalR.HubException
Public Sub New (message As String)
参数
- message
- String
解释异常原因的错误消息。
适用于
HubException(SerializationInfo, StreamingContext)
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
初始化 HubException 类的新实例。
public:
HubException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public HubException (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}")]
public HubException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.AspNetCore.SignalR.HubException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.AspNetCore.SignalR.HubException
[<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 Microsoft.AspNetCore.SignalR.HubException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.AspNetCore.SignalR.HubException
Public Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
包含有关所引发异常的序列化对象数据的 SerializationInfo。
- context
- StreamingContext
StreamingContext,它包含关于源或目标的上下文信息。
- 属性
例外
info
参数为 null
。
类名为 null
或者 HResult 为零 (0)。
适用于
HubException(String, Exception)
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 HubException 类的新实例。
public:
HubException(System::String ^ message, Exception ^ innerException);
public HubException (string message, Exception innerException);
public HubException (string? message, Exception? innerException);
new Microsoft.AspNetCore.SignalR.HubException : string * Exception -> Microsoft.AspNetCore.SignalR.HubException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
解释异常原因的错误消息。
- innerException
- Exception
作为当前异常原因的异常,如果没有指定内部异常,则为 null
。