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
System_CAPS_pubmethod Message(Object)

Initializes a new instance of the Message class.

System_CAPS_pubmethod Message(Object, XmlObjectSerializer)

Initializes a new instance of the Message class.

Properties

Name Description
System_CAPS_pubproperty ContentType

Gets or sets the type of the content of the message body.

System_CAPS_pubproperty CorrelationId

Gets or sets the identifier of the correlation.

System_CAPS_pubproperty DeliveryCount

Gets the number of deliveries.

System_CAPS_pubproperty EnqueuedTime

Gets or sets the date and time of the sent time.

System_CAPS_pubproperty Label

Gets or sets the application specific label.

System_CAPS_pubproperty LockedUntil

Gets the date and time until which the message will be locked in the queue/subscription.

System_CAPS_pubproperty LockToken

Gets the lock token assigned by Service Bus to this message.

System_CAPS_pubproperty MessageId

Gets or sets the identifier of the message.

System_CAPS_pubproperty Properties

Gets the application specific message properties.

System_CAPS_pubproperty ReplyTo

Gets or sets the address of the queue to reply to.

System_CAPS_pubproperty ReplyToSessionId

Gets or sets the session identifier to reply to.

System_CAPS_pubproperty ScheduledEnqueueTime

Gets or sets the date and time at which the message will be enqueued.

System_CAPS_pubproperty SequenceNumber

Gets the unique number assigned to a message by the Service Bus.

System_CAPS_pubproperty SessionId

Gets or sets the identifier of the session.

System_CAPS_pubproperty TimeToLive

Gets or sets the message’s time to live value.

System_CAPS_pubproperty To

Gets or sets the send to address.

Methods

Name Description
System_CAPS_pubmethod Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetBody<T>()

Gets the message body.

System_CAPS_pubmethod GetBody<T>(XmlObjectSerializer)

Deserializes the message body into an object of the specified type by using the supplied XmlObjectSerializer.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod 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