ServiceBusyException 构造函数
定义
初始化 ServiceBusyException 类的实例。Initializes an instance of the ServiceBusyException class.
重载
| ServiceBusyException() |
初始化 ServiceBusyException 类的实例。Initializes an instance of the ServiceBusyException class. |
| ServiceBusyException(String) |
使用指定的错误消息初始化 ServiceBusyException 类的实例。Initializes an instance of the ServiceBusyException class with the specified error message. |
| ServiceBusyException(SerializationInfo, StreamingContext) |
使用指定的序列化信息和流上下文初始化 ServiceBusyException 类的实例。Initializes an instance of the ServiceBusyException class with serialization information and streaming context specified. |
| ServiceBusyException(String, Exception) |
使用指定的错误消息和对导致此异常的内部异常的引用来初始化 ServiceBusyException 类的实例。Initializes an instance of the ServiceBusyException class with the specified error message and a reference to the inner exception that is the cause of this exception. |
ServiceBusyException()
初始化 ServiceBusyException 类的实例。Initializes an instance of the ServiceBusyException class.
public:
ServiceBusyException();
public ServiceBusyException ();
Public Sub New ()
适用于
ServiceBusyException(String)
使用指定的错误消息初始化 ServiceBusyException 类的实例。Initializes an instance of the ServiceBusyException class with the specified error message.
public:
ServiceBusyException(System::String ^ message);
public ServiceBusyException (string message);
new System.IdentityModel.Selectors.ServiceBusyException : string -> System.IdentityModel.Selectors.ServiceBusyException
Public Sub New (message As String)
参数
- message
- String
描述错误的消息。The message that describes the error.
注解
此构造函数将新实例的 Message 属性初始化为系统提供的错误描述消息。This constructor initializes the Message property of the new instance to a system-supplied message that describes the error. 该消息的内容也应该是用户可以理解的。The content of the message should also be understandable to the user.
适用于
ServiceBusyException(SerializationInfo, StreamingContext)
使用指定的序列化信息和流上下文初始化 ServiceBusyException 类的实例。Initializes an instance of the ServiceBusyException class with serialization information and streaming context specified.
protected:
ServiceBusyException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ServiceBusyException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.IdentityModel.Selectors.ServiceBusyException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IdentityModel.Selectors.ServiceBusyException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
保存有关所引发异常的序列化对象数据的 SerializationInfo 对象。The SerializationInfo object that holds the serialized object data about the exception that is being thrown.
- context
- StreamingContext
StreamingContext 对象,该对象包含有关源或目标的上下文信息。The StreamingContext object that contains contextual information about the source or destination.
注解
在反序列化期间调用此构造函数以重新构造在流上传输的异常对象。This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.
适用于
ServiceBusyException(String, Exception)
使用指定的错误消息和对导致此异常的内部异常的引用来初始化 ServiceBusyException 类的实例。Initializes an instance of the ServiceBusyException class with the specified error message and a reference to the inner exception that is the cause of this exception.
public:
ServiceBusyException(System::String ^ message, Exception ^ innerException);
public ServiceBusyException (string message, Exception innerException);
new System.IdentityModel.Selectors.ServiceBusyException : string * Exception -> System.IdentityModel.Selectors.ServiceBusyException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
描述错误的消息。The message that describes the error.
- innerException
- Exception
导致当前异常的异常。The exception that is the cause of the current exception.
注解
因前一个异常而直接引发的异常应在 InnerException 属性中包含对前一个异常的引用。An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. InnerException 属性将返回传递给构造函数的同一值;如果 InnerException 属性不向构造函数提供内部异常值,则返回 null。The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.