This documentation is archived and is not being maintained.

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)

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

Type Parameters


Represents the message body.


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");


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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0