MsmqPoisonMessageException Constructors

Definition

Initializes a new instance of the MsmqPoisonMessageException class.

Overloads

MsmqPoisonMessageException()

Initializes a new instance of the MsmqPoisonMessageException class.

MsmqPoisonMessageException(Int64)

Initializes a new instance of the MsmqPoisonMessageException class by using the specified lookup ID of the poison message.

MsmqPoisonMessageException(String)

Initializes a new instance of the MsmqPoisonMessageException class by using the specified message text.

MsmqPoisonMessageException(Int64, Exception)

Initializes a new instance of the MsmqPoisonMessageException class by using the specified lookup ID of the poison message, and the inner exception.

MsmqPoisonMessageException(SerializationInfo, StreamingContext)

Initializes a new instance of the MsmqPoisonMessageException class with additional serialized information about the exception.

MsmqPoisonMessageException(String, Exception)

Initializes a new instance of the MsmqPoisonMessageException class by using the specified message text and the inner exception.

MsmqPoisonMessageException()

Initializes a new instance of the MsmqPoisonMessageException class.

C#
public MsmqPoisonMessageException();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

MsmqPoisonMessageException(Int64)

Initializes a new instance of the MsmqPoisonMessageException class by using the specified lookup ID of the poison message.

C#
public MsmqPoisonMessageException(long messageLookupId);

Parameters

messageLookupId
Int64

The lookup ID of the poison message.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

MsmqPoisonMessageException(String)

Initializes a new instance of the MsmqPoisonMessageException class by using the specified message text.

C#
public MsmqPoisonMessageException(string message);

Parameters

message
String

The message with which to initialize the new instance of the MsmqPoisonMessageException class.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

MsmqPoisonMessageException(Int64, Exception)

Initializes a new instance of the MsmqPoisonMessageException class by using the specified lookup ID of the poison message, and the inner exception.

C#
public MsmqPoisonMessageException(long messageLookupId, Exception innerException);

Parameters

messageLookupId
Int64

The lookup ID of the poison message.

innerException
Exception

The inner exception to be encapsulated by the new instance of the MsmqPoisonMessageException class.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

MsmqPoisonMessageException(SerializationInfo, StreamingContext)

Initializes a new instance of the MsmqPoisonMessageException class with additional serialized information about the exception.

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

Parameters

info
SerializationInfo

A SerializationInfo instance that holds the serialized data associated with the MsmqPoisonMessageException.

context
StreamingContext

A StreamingContext instance that contains the source and destination of the serialized stream associated with the MsmqPoisonMessageException.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

MsmqPoisonMessageException(String, Exception)

Initializes a new instance of the MsmqPoisonMessageException class by using the specified message text and the inner exception.

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

Parameters

message
String

The message with which to initialize the new instance of the MsmqPoisonMessageException class.

innerException
Exception

The inner exception to be encapsulated by the new instance of the MsmqPoisonMessageException class.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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