HostAbortedException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
HostAbortedException() |
使用系统提供的错误信息初始化 HostAbortedException 类的新实例。 |
HostAbortedException(String) |
用指定的错误消息初始化 HostAbortedException 类的新实例。 |
HostAbortedException(String, Exception) |
使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 HostAbortedException 类的新实例。 |
HostAbortedException()
- Source:
- HostAbortedException.cs
- Source:
- HostAbortedException.cs
- Source:
- HostAbortedException.cs
- Source:
- HostAbortedException.cs
使用系统提供的错误信息初始化 HostAbortedException 类的新实例。
public:
HostAbortedException();
public HostAbortedException ();
Public Sub New ()
适用于
HostAbortedException(String)
- Source:
- HostAbortedException.cs
- Source:
- HostAbortedException.cs
- Source:
- HostAbortedException.cs
- Source:
- HostAbortedException.cs
用指定的错误消息初始化 HostAbortedException 类的新实例。
public:
HostAbortedException(System::String ^ message);
public HostAbortedException (string? message);
new Microsoft.Extensions.Hosting.HostAbortedException : string -> Microsoft.Extensions.Hosting.HostAbortedException
Public Sub New (message As String)
参数
- message
- String
解释异常原因的错误消息。
注解
message
的内容设计为易于理解。
此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。
适用于
HostAbortedException(String, Exception)
- Source:
- HostAbortedException.cs
- Source:
- HostAbortedException.cs
- Source:
- HostAbortedException.cs
- Source:
- HostAbortedException.cs
使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 HostAbortedException 类的新实例。
public:
HostAbortedException(System::String ^ message, Exception ^ innerException);
public HostAbortedException (string? message, Exception? innerException);
new Microsoft.Extensions.Hosting.HostAbortedException : string * Exception -> Microsoft.Extensions.Hosting.HostAbortedException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
解释异常原因的错误消息。
- innerException
- Exception
导致当前异常的异常。
注解
message
的内容设计为易于理解。
此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。