Bewerken

Delen via


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

Initializes a new instance of the PipeException class.

public:
 PipeException();
public PipeException ();
Public Sub New ()

Applies to

PipeException(String)

Source:
PipeException.cs

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

public:
 PipeException(System::String ^ message);
public PipeException (string message);
new System.IO.PipeException : string -> System.IO.PipeException
Public Sub New (message As String)

Parameters

message
String

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

Applies to

PipeException(SerializationInfo, StreamingContext)

Source:
PipeException.cs

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

protected:
 PipeException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PipeException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.IO.PipeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IO.PipeException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

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

PipeException(String, Exception)

Source:
PipeException.cs

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

public:
 PipeException(System::String ^ message, Exception ^ inner);
public PipeException (string message, Exception inner);
new System.IO.PipeException : string * Exception -> System.IO.PipeException
Public Sub New (message As String, inner As Exception)

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

PipeException(String, Int32)

Source:
PipeException.cs

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

public:
 PipeException(System::String ^ message, int errorCode);
public PipeException (string message, int errorCode);
new System.IO.PipeException : string * int -> System.IO.PipeException
Public Sub New (message As String, errorCode As Integer)

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