HostAbortedException Constructors

Definition

Overloads

HostAbortedException()

Initializes a new instance of the HostAbortedException class with a system-supplied error message.

HostAbortedException(String)

Initializes a new instance of the HostAbortedException class with a specified error message.

HostAbortedException(String, Exception)

Initializes a new instance of the HostAbortedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

HostAbortedException()

Source:
HostAbortedException.cs
Source:
HostAbortedException.cs
Source:
HostAbortedException.cs
Source:
HostAbortedException.cs

Initializes a new instance of the HostAbortedException class with a system-supplied error message.

public:
 HostAbortedException();
public HostAbortedException ();
Public Sub New ()

Applies to

HostAbortedException(String)

Source:
HostAbortedException.cs
Source:
HostAbortedException.cs
Source:
HostAbortedException.cs
Source:
HostAbortedException.cs

Initializes a new instance of the HostAbortedException class with a specified error message.

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)

Parameters

message
String

The error message that explains the reason for the exception.

Remarks

The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Applies to

HostAbortedException(String, Exception)

Source:
HostAbortedException.cs
Source:
HostAbortedException.cs
Source:
HostAbortedException.cs
Source:
HostAbortedException.cs

Initializes a new instance of the HostAbortedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception.

Remarks

The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Applies to