CommunicationObjectFaultedException Constructors

Definition

Initializes a new instance of the CommunicationObjectFaultedException class.

Overloads

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.

CommunicationObjectFaultedException()

Source:
CommunicationObjectFaultedException.cs
Source:
CommunicationObjectFaultedException.cs

Initializes a new instance of the CommunicationObjectFaultedException class.

C#
public CommunicationObjectFaultedException();

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

CommunicationObjectFaultedException(String)

Source:
CommunicationObjectFaultedException.cs
Source:
CommunicationObjectFaultedException.cs

Initializes a new instance of the CommunicationObjectFaultedException class using the specified message.

C#
public CommunicationObjectFaultedException(string message);

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

CommunicationObjectFaultedException(SerializationInfo, StreamingContext)

Source:
CommunicationObjectFaultedException.cs
Source:
CommunicationObjectFaultedException.cs

Initializes a new instance of the CommunicationObjectFaultedException class when deserializing a stream using the specified SerializationInfo and StreamingContext objects.

C#
protected CommunicationObjectFaultedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

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)

CommunicationObjectFaultedException(String, Exception)

Source:
CommunicationObjectFaultedException.cs
Source:
CommunicationObjectFaultedException.cs

Initializes a new instance of the CommunicationObjectFaultedException class using the specified message and inner exception.

C#
public CommunicationObjectFaultedException(string message, Exception innerException);

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