Message Class
Represents the message in Microsoft Azure service.
Namespace: Microsoft.WindowsAzure.Messaging
Assembly: Microsoft.WindowsAzure.Messaging.Managed (in Microsoft.WindowsAzure.Messaging.Managed.dll)
Inheritance Hierarchy
System.Object
Microsoft.WindowsAzure.Messaging.Message
Syntax
public sealed class Message : IDisposable
public ref class Message sealed : IDisposable
[<Sealed>]
type Message =
class
interface IDisposable
end
Public NotInheritable Class Message
Implements IDisposable
Constructors
Name | Description | |
---|---|---|
Message(Object) | Initializes a new instance of the Message class. |
|
Message(Object, XmlObjectSerializer) | Initializes a new instance of the Message class. |
Properties
Name | Description | |
---|---|---|
ContentType | Gets or sets the type of the content of the message body. |
|
CorrelationId | Gets or sets the identifier of the correlation. |
|
DeliveryCount | Gets the number of deliveries. |
|
EnqueuedTime | Gets or sets the date and time of the sent time. |
|
Label | Gets or sets the application specific label. |
|
LockedUntil | Gets the date and time until which the message will be locked in the queue/subscription. |
|
LockToken | Gets the lock token assigned by Service Bus to this message. |
|
MessageId | Gets or sets the identifier of the message. |
|
Properties | Gets the application specific message properties. |
|
ReplyTo | Gets or sets the address of the queue to reply to. |
|
ReplyToSessionId | Gets or sets the session identifier to reply to. |
|
ScheduledEnqueueTime | Gets or sets the date and time at which the message will be enqueued. |
|
SequenceNumber | Gets the unique number assigned to a message by the Service Bus. |
|
SessionId | Gets or sets the identifier of the session. |
|
TimeToLive | Gets or sets the message’s time to live value. |
|
To | Gets or sets the send to address. |
Methods
Name | Description | |
---|---|---|
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
|
Equals(Object) | (Inherited from Object.) |
|
GetBody<T>() | Gets the message body. |
|
GetBody<T>(XmlObjectSerializer) | Deserializes the message body into an object of the specified type by using the supplied XmlObjectSerializer. |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.WindowsAzure.Messaging Namespace
Return to top