CommunicationObjectFaultedException 构造函数
定义
初始化 CommunicationObjectFaultedException 类的新实例。Initializes a new instance of the CommunicationObjectFaultedException class.
重载
| CommunicationObjectFaultedException() |
初始化 CommunicationObjectFaultedException 类的新实例。Initializes a new instance of the CommunicationObjectFaultedException class. |
| CommunicationObjectFaultedException(String) |
使用指定的消息初始化 CommunicationObjectFaultedException 类的新实例。Initializes a new instance of the CommunicationObjectFaultedException class using the specified message. |
| CommunicationObjectFaultedException(SerializationInfo, StreamingContext) |
使用指定的 CommunicationObjectFaultedException 和 SerializationInfo 对象反序列化流时初始化 StreamingContext 类的新实例。Initializes a new instance of the CommunicationObjectFaultedException class when deserializing a stream using the specified SerializationInfo and StreamingContext objects. |
| CommunicationObjectFaultedException(String, Exception) |
使用指定的消息和内部异常初始化 CommunicationObjectFaultedException 类的新实例。Initializes a new instance of the CommunicationObjectFaultedException class using the specified message and inner exception. |
CommunicationObjectFaultedException()
初始化 CommunicationObjectFaultedException 类的新实例。Initializes a new instance of the CommunicationObjectFaultedException class.
public:
CommunicationObjectFaultedException();
public CommunicationObjectFaultedException ();
Public Sub New ()
注解
创建一个新的 CommunicationObjectFaultedException。Creates a new CommunicationObjectFaultedException.
适用于
CommunicationObjectFaultedException(String)
使用指定的消息初始化 CommunicationObjectFaultedException 类的新实例。Initializes a new instance of the CommunicationObjectFaultedException class using the specified message.
public:
CommunicationObjectFaultedException(System::String ^ message);
public CommunicationObjectFaultedException (string message);
new System.ServiceModel.CommunicationObjectFaultedException : string -> System.ServiceModel.CommunicationObjectFaultedException
Public Sub New (message As String)
参数
- message
- String
描述该异常的消息。The message that describes the exception.
注解
使用指定的 CommunicationObjectFaultedException 创建新的 message。Creates a new CommunicationObjectFaultedException using the specified message.
适用于
CommunicationObjectFaultedException(SerializationInfo, StreamingContext)
使用指定的 CommunicationObjectFaultedException 和 SerializationInfo 对象反序列化流时初始化 StreamingContext 类的新实例。Initializes a new instance of the CommunicationObjectFaultedException class when deserializing a stream using the specified SerializationInfo and StreamingContext objects.
protected:
CommunicationObjectFaultedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CommunicationObjectFaultedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.CommunicationObjectFaultedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.CommunicationObjectFaultedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
用于创建异常对象的序列化信息。The serialization information used to create the exception object.
- context
- StreamingContext
用于创建异常对象的上下文。The context within which the exception object is created.
注解
从流反序列化 CommunicationObjectFaultedException 对象时,将调用此构造函数。This constructor is called when deserializing a CommunicationObjectFaultedException object from a stream.
适用于
CommunicationObjectFaultedException(String, Exception)
使用指定的消息和内部异常初始化 CommunicationObjectFaultedException 类的新实例。Initializes a new instance of the CommunicationObjectFaultedException class using the specified message and inner exception.
public:
CommunicationObjectFaultedException(System::String ^ message, Exception ^ innerException);
public CommunicationObjectFaultedException (string message, Exception innerException);
new System.ServiceModel.CommunicationObjectFaultedException : string * Exception -> System.ServiceModel.CommunicationObjectFaultedException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
异常消息。The exception message.
- innerException
- Exception
内部异常。The inner exception.
注解
使用指定的 CommunicationObjectFaultedException 和 message 创建新的 innerException。Creates a new CommunicationObjectFaultedException using the specified message and innerException.