MessagingException 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
MessagingException(String) |
Initializes a new instance of the MessagingException class with a specified error message. |
MessagingException(SerializationInfo, StreamingContext) |
Initializes a new instance of the MessagingException class with serialization information and streaming context. |
MessagingException(String, Exception) |
Initializes a new instance of the MessagingException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
MessagingException(String, Boolean, Exception) |
Initializes a new instance of the MessagingException class. |
MessagingException(String)
Initializes a new instance of the MessagingException class with a specified error message.
public MessagingException (string message);
new Microsoft.ServiceBus.Messaging.MessagingException : string -> Microsoft.ServiceBus.Messaging.MessagingException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
MessagingException(SerializationInfo, StreamingContext)
Initializes a new instance of the MessagingException class with serialization information and streaming context.
protected MessagingException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.ServiceBus.Messaging.MessagingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.ServiceBus.Messaging.MessagingException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The serialization information.
- context
- StreamingContext
The streaming context.
Applies to
MessagingException(String, Exception)
Initializes a new instance of the MessagingException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public MessagingException (string message, Exception innerException);
new Microsoft.ServiceBus.Messaging.MessagingException : string * Exception -> Microsoft.ServiceBus.Messaging.MessagingException
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.
Applies to
MessagingException(String, Boolean, Exception)
Initializes a new instance of the MessagingException class.
public MessagingException (string message, bool isTransientError, Exception innerException);
new Microsoft.ServiceBus.Messaging.MessagingException : string * bool * Exception -> Microsoft.ServiceBus.Messaging.MessagingException
Public Sub New (message As String, isTransientError As Boolean, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
- isTransientError
- Boolean
true if the exception is transient; otherwise, false.
- innerException
- Exception
The exception that is the cause of the current exception.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기