HubException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HubException() |
Initializes a new instance of the HubException class. |
HubException(String) |
Initializes a new instance of the HubException class with a specified error message. |
HubException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the HubException class. |
HubException(String, Exception) |
Initializes a new instance of the HubException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
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
Initializes a new instance of the HubException class.
public:
HubException();
public HubException ();
Public Sub New ()
Applies to
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
Initializes a new instance of the HubException class with a specified error message.
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)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
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
Caution
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initializes a new instance of the HubException class.
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)
Parameters
- info
- SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
The StreamingContext that contains contextual information about the source or destination.
- Attributes
Exceptions
The info
parameter is null
.
The class name is null
or HResult is zero (0).
Applies to
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
Initializes a new instance of the HubException class with a specified error message and a reference to the inner exception that is the cause of this exception.
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)
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, or null
if no inner exception is specified.