CommunicationObjectFaultedException Constructors
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.
Initializes a new instance of the CommunicationObjectFaultedException class.
CommunicationObjectFaultedException() |
Initializes a new instance of the CommunicationObjectFaultedException class. |
CommunicationObjectFaultedException(String) |
Initializes a new instance of the CommunicationObjectFaultedException class using the specified message. |
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) |
Initializes a new instance of the CommunicationObjectFaultedException class using the specified message and inner exception. |
Initializes a new instance of the CommunicationObjectFaultedException class.
public:
CommunicationObjectFaultedException();
public CommunicationObjectFaultedException();
Public Sub New ()
Remarks
Creates a new CommunicationObjectFaultedException.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
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)
Parameters
- message
- String
The message that describes the exception.
Remarks
Creates a new CommunicationObjectFaultedException using the specified message
.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
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)
Parameters
- info
- SerializationInfo
The serialization information used to create the exception object.
- context
- StreamingContext
The context within which the exception object is created.
Remarks
This constructor is called when deserializing a CommunicationObjectFaultedException object from a stream.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
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)
Parameters
- message
- String
The exception message.
- innerException
- Exception
The inner exception.
Remarks
Creates a new CommunicationObjectFaultedException using the specified message
and innerException
.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: