PipeException Constructors

Definition

Initializes a new instance of the PipeException class.

Overloads

PipeException()

Initializes a new instance of the PipeException class.

PipeException(String)

Initializes a new instance of the PipeException class with a specified error message.

PipeException(SerializationInfo, StreamingContext)

Initializes a new instance of the PipeException class with the specified serialization information and streaming context.

PipeException(String, Exception)

Initializes a new instance of the PipeException class with the specified error message and the inner exception.

PipeException(String, Int32)

Initializes a new instance of the PipeException class with a specified error message and error code.

PipeException()

Source:
PipeException.cs
Source:
PipeException.cs

Initializes a new instance of the PipeException class.

C#
public PipeException();

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

PipeException(String)

Source:
PipeException.cs
Source:
PipeException.cs

Initializes a new instance of the PipeException class with a specified error message.

C#
public PipeException(string message);

Parameters

message
String

A string that contains the error message that explains the reason for the exception.

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

PipeException(SerializationInfo, StreamingContext)

Source:
PipeException.cs
Source:
PipeException.cs

Initializes a new instance of the PipeException class with the specified serialization information and streaming context.

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

Parameters

info
SerializationInfo

The SerializationInfo that contains all the data required to serialize the exception.

context
StreamingContext

The StreamingContext that specifies the source and destination of the 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

PipeException(String, Exception)

Source:
PipeException.cs
Source:
PipeException.cs

Initializes a new instance of the PipeException class with the specified error message and the inner exception.

C#
public PipeException(string message, Exception inner);

Parameters

message
String

A string that contains the error message that explains the reason for the exception.

inner
Exception

The Exception that caused the current exception to be thrown.

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

PipeException(String, Int32)

Source:
PipeException.cs
Source:
PipeException.cs

Initializes a new instance of the PipeException class with a specified error message and error code.

C#
public PipeException(string message, int errorCode);

Parameters

message
String

A string that contains the error message that explains the reason for the exception.

errorCode
Int32

An integer that contains the error code.

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