Share via


HubException Konstruktoren

Definition

Überlädt

HubException()

Initialisiert eine neue Instanz der HubException-Klasse.

HubException(String)

Initialisiert eine neue Instanz der HubException-Klasse mit einer angegebenen Fehlermeldung.

HubException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der HubException-Klasse.

HubException(String, Exception)

Initialisiert eine neue Instanz der HubException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

HubException()

Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs

Initialisiert eine neue Instanz der HubException-Klasse.

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

Gilt für:

HubException(String)

Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs

Initialisiert eine neue Instanz der HubException-Klasse mit einer angegebenen Fehlermeldung.

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)

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

Gilt für:

HubException(SerializationInfo, StreamingContext)

Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs

Achtung

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Initialisiert eine neue Instanz der HubException-Klasse.

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)

Parameter

info
SerializationInfo

Die SerializationInfo, die die serialisierten Objektdaten für die ausgelöste Ausnahme enthält.

context
StreamingContext

Der StreamingContext, der die Kontextinformationen über die Quelle oder das Ziel enthält.

Attribute

Ausnahmen

Der info-Parameter ist null.

Der Klassenname ist null, oder HResult ist 0 (null).

Gilt für:

HubException(String, Exception)

Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs
Quelle:
HubException.cs

Initialisiert eine neue Instanz der HubException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

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)

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

innerException
Exception

Die Ausnahme, die die aktuelle Ausnahme verursacht hat, oder null, wenn keine innere Ausnahme angegeben ist.

Gilt für: