Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

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

Namespace:  System.ServiceModel.MsmqIntegration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
[MessageContractAttribute(IsWrapped = false)]
public sealed class MsmqMessage<T>

Type Parameters

T

Represents the message body.

The MsmqMessage<T> type exposes the following members.

  NameDescription
Public methodMsmqMessage<T>Initializes a new instance of the MsmqMessage<T> class with the provided message body.
Top
  NameDescription
Public propertyAcknowledgeTypeGets or sets the AcknowledgeTypes that is associated with this message.
Public propertyAcknowledgmentGets the Acknowledgment that is associated with this message.
Public propertyAdministrationQueueGets or sets the Uri of the administration queue that is associated with this message.
Public propertyAppSpecificGets or sets an Int32 value that represents any additional application-specific information that is associated with this message.
Public propertyArrivedTimeGets or sets a DateTime that indicates when the message arrived in the destination queue.
Public propertyAuthenticatedGets a Boolean value that indicates whether the message is authenticated.
Public propertyBodyGets or sets the body of the message.
Public propertyBodyTypeGets or sets an Int32 value that indicates the type of the body of the message.
Public propertyCorrelationIdGets or sets a String that contains the correlation identifier for this message.
Public propertyDestinationQueueGets the Uri of the destination queue for this message.
Public propertyExtensionGets or sets an array of Byte that contains any additional, application-defined information that is associated with this message.
Public propertyIdGets a String that contains the message identifier for this message.
Public propertyLabelGets or sets a String that contains the message label.
Public propertyMessageTypeGets the MessageType that is associated with this message.
Public propertyPriorityGets or sets the MessagePriority that is associated with this message.
Public propertyResponseQueueGets or sets the Uri of the message queue that receives response messages from the receiving application.
Public propertySenderIdGets an array of Byte that contains the sender identifier of the sending application.
Public propertySentTimeGets a DateTime that indicates when the message was sent by the queue manager of the sending application's computer.
Public propertyTimeToReachQueueGets or sets a TimeSpan that indicates the maximum amount of time allowed for the message to reach the destination queue.
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
ExceptionCondition
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

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.