MsmqMessage<T> Class

 

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.

Namespace:   System.ServiceModel.MsmqIntegration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

System.Object
  System.ServiceModel.MsmqIntegration.MsmqMessage<T>

[MessageContractAttribute(IsWrapped = false)]
public sealed class MsmqMessage<T>

Type Parameters

T

Represents the message body.

NameDescription
System_CAPS_pubmethodMsmqMessage<T>(T)

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

NameDescription
System_CAPS_pubpropertyAcknowledgeType

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

System_CAPS_pubpropertyAcknowledgment

Gets the Acknowledgment that is associated with this message.

System_CAPS_pubpropertyAdministrationQueue

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

System_CAPS_pubpropertyAppSpecific

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

System_CAPS_pubpropertyArrivedTime

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

System_CAPS_pubpropertyAuthenticated

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

System_CAPS_pubpropertyBody

Gets or sets the body of the message.

System_CAPS_pubpropertyBodyType

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

System_CAPS_pubpropertyCorrelationId

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

System_CAPS_pubpropertyDestinationQueue

Gets the Uri of the destination queue for this message.

System_CAPS_pubpropertyExtension

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

System_CAPS_pubpropertyId

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

System_CAPS_pubpropertyLabel

Gets or sets a String that contains the message label.

System_CAPS_pubpropertyMessageType

Gets the MessageType that is associated with this message.

System_CAPS_pubpropertyPriority

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

System_CAPS_pubpropertyResponseQueue

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

System_CAPS_pubpropertySenderId

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

System_CAPS_pubpropertySentTime

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

System_CAPS_pubpropertyTimeToReachQueue

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

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Exception Condition
ArgumentNullException

Message body is null.

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

MsmqMessage<string> message = new MsmqMessage<string>("Hello, world");

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: