Upravit

Sdílet prostřednictvím


MsmqException Constructors

Definition

Initializes a new instance of the MsmqException class.

Overloads

MsmqException()

Initializes a new instance of the MsmqException class.

MsmqException(String)

Initializes a new instance of the MsmqException class with the message provided.

MsmqException(SerializationInfo, StreamingContext)

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

MsmqException(String, Exception)

Initializes a new instance of the MsmqException class with the message and inner exception provided.

MsmqException(String, Int32)

Initializes a new instance of the MsmqException class with the message and error code provided.

MsmqException()

Initializes a new instance of the MsmqException class.

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

Remarks

This exception can be thrown when the Message Queuing (MSMQ) channel interacts with a message queue, including opening a queue, querying a queue for information, sending messages, and receiving messages.

Applies to

MsmqException(String)

Initializes a new instance of the MsmqException class with the message provided.

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

Parameters

message
String

The message with which to initialize the new instance.

Remarks

This exception can be thrown when the Message Queuing (MSMQ) channel interacts with a message queue, including opening a queue, querying a queue for information, sending messages, and receiving messages.

Applies to

MsmqException(SerializationInfo, StreamingContext)

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

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

Parameters

info
SerializationInfo

A SerializationInfo that holds the serialized data associated with the MsmqException.

context
StreamingContext

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

Remarks

This exception can be thrown when the Message Queuing (MSMQ) channel interacts with a message queue, including opening a queue, querying a queue for information, sending messages, and receiving messages.

Applies to

MsmqException(String, Exception)

Initializes a new instance of the MsmqException class with the message and inner exception provided.

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

Parameters

message
String

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

inner
Exception

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

Remarks

This exception can be thrown when the Message Queuing (MSMQ) channel interacts with a message queue, including opening a queue, querying a queue for information, sending messages, and receiving messages.

Applies to

MsmqException(String, Int32)

Initializes a new instance of the MsmqException class with the message and error code provided.

public:
 MsmqException(System::String ^ message, int error);
public MsmqException (string message, int error);
new System.ServiceModel.MsmqException : string * int -> System.ServiceModel.MsmqException
Public Sub New (message As String, error As Integer)

Parameters

message
String

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

error
Int32

The error code, returned by the Message Queuing (MSMQ) infrastructure, with which to initialize the new instance of the MsmqException class.

Remarks

This exception can be thrown when the Message Queuing channel interacts with a message queue, including opening a queue, querying a queue for information, sending messages, and receiving messages.

Applies to