MsmqMessage<T> Class

Definition

The MsmqMessage<T> class encapsulates aMessage Queuing (MSMQ) message that is sent and received, over a Message Queuing integration channel, to and from an existing Message Queuing application.

generic <typename T>
public ref class MsmqMessage sealed
[System.ServiceModel.MessageContract(IsWrapped=false)]
public sealed class MsmqMessage<T>
[<System.ServiceModel.MessageContract(IsWrapped=false)>]
type MsmqMessage<'T> = class
Public NotInheritable Class MsmqMessage(Of T)

Type Parameters

T

Represents the message body.

Inheritance
MsmqMessage<T>
Attributes

Examples

MsmqMessage<string> message = new MsmqMessage<string>("Hello, world");
Dim message As New MsmqMessage(Of String)("Hello, world")

Remarks

Use the MsmqMessage<T> class to access the properties of the Message Queuing message.

Constructors

MsmqMessage<T>(T)

Initializes a new instance of the MsmqMessage<T> class with the provided message body.

Properties

AcknowledgeType

Gets or sets the AcknowledgeTypes that is associated with this message.

Acknowledgment

Gets the Acknowledgment that is associated with this message.

AdministrationQueue

Gets or sets the Uri of the administration queue that is associated with this message.

AppSpecific

Gets or sets an Int32 value that represents any additional application-specific information that is associated with this message.

ArrivedTime

Gets or sets a DateTime that indicates when the message arrived in the destination queue.

Authenticated

Gets a Boolean value that indicates whether the message is authenticated.

Body

Gets or sets the body of the message.

BodyType

Gets or sets an Int32 value that indicates the type of the body of the message.

CorrelationId

Gets or sets a String that contains the correlation identifier for this message.

DestinationQueue

Gets the Uri of the destination queue for this message.

Extension

Gets or sets an array of Byte that contains any additional, application-defined information that is associated with this message.

Id

Gets a String that contains the message identifier for this message.

Label

Gets or sets a String that contains the message label.

MessageType

Gets the MessageType that is associated with this message.

Priority

Gets or sets the MessagePriority that is associated with this message.

ResponseQueue

Gets or sets the Uri of the message queue that receives response messages from the receiving application.

SenderId

Gets an array of Byte that contains the sender identifier of the sending application.

SentTime

Gets a DateTime that indicates when the message was sent by the queue manager of the sending application's computer.

TimeToReachQueue

Gets or sets a TimeSpan that indicates the maximum amount of time allowed for the message to reach the destination queue.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to