|  | Sign in
Expand
This topic has not yet been rated Rate this topic

BrokeredMessage Class

Represents the unit of communication between AppFabric ServiceBus clients.

System.Object
  Microsoft.ServiceBus.Messaging.BrokeredMessage

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
public sealed class BrokeredMessage : IXmlSerializable, 
	IDisposable

The BrokeredMessage type exposes the following members.

  Name Description
Public method BrokeredMessage Initializes a new instance of the BrokeredMessage class.
Public method BrokeredMessage(Object) Initializes a new instance of the BrokeredMessage class from a given object by using DataContractSerializer with a binary XmlDictionaryWriter.
Public method BrokeredMessage(Stream, Boolean) Initializes a new instance of the BrokeredMessage class using the supplied stream as its body.
Public method BrokeredMessage(Object, XmlObjectSerializer) Initializes a new instance of the BrokeredMessage class from a given object using the provided XmlObjectSerializer.
Top
  Name Description
Public property ContentType Gets or sets the type of the content.
Public property CorrelationId Gets or sets the identifier of the correlation.
Public property DeliveryCount Gets the number of deliveries.
Public property EnqueuedTimeUtc Gets or sets the date and time of the sent time in UTC.
Public property ExpiresAtUtc Gets the date and time in UTC at which the message is set to expire.
Public property Label Gets or sets the application specific label.
Public property LockedUntilUtc Gets the date and time in UTC until which the message will be locked in the queue/subscription.
Public property LockToken Gets the lock token assigned by Service Bus to this message.
Public property MessageId Gets or sets the identifier of the message.
Public property Properties Gets the application specific message properties.
Public property ReplyTo Gets or sets the address of the queue to reply to.
Public property ReplyToSessionId Gets or sets the session identifier to reply to.
Public property ScheduledEnqueueTimeUtc Gets or sets the date and time in UTC at which the message will be enqueued.
Public property SequenceNumber Gets the unique number assigned to a message by the Service Bus.
Public property SessionId Gets or sets the identifier of the session.
Public property Size Gets the size of the message in bytes.
Public property TimeToLive Gets or sets the message’s time to live value. This is the duration after which the message expires, starting from when the message is sent to the Service Bus. Messages older than their TimeToLive value will expire and no longer be retained in the message store. Subscribers will be unable to receive expired messages.
Public property To Gets or sets the send to address.
Top
  Name Description
Public method Abandon Abandons the lock on a peek-locked message.
Public method BeginAbandon Begins an asynchronous operation to abandon the lock on a peek-locked message.
Public method BeginComplete Begins an asynchronous operation to complete a message.
Public method BeginDeadLetter(AsyncCallback, Object) Begins an asynchronous operation to move the message to the dead letter queue.
Public method BeginDeadLetter(String, String, AsyncCallback, Object) Begins an asynchronous operation to move the message to the dead letter queue.
Public method BeginDefer Begins an asynchronous operation to defer a message.
Public method Complete Completes the receive operation of a message and indicates that the message should be marked as processed and deleted or archived.
Public method DeadLetter Moves the message to the dead letter queue.
Public method DeadLetter(String, String) Moves the message to the dead letter queue.
Public method Defer Indicates that the receiver wants to defer the processing for this message.
Public method Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public method EndAbandon Ends an asynchronous request to abandon the lock on a peek-locked message.
Public method EndComplete Ends an asynchronous operation to complete a message.
Public method EndDeadLetter Ends an asynchronous request to move the message to the dead letter queue.
Public method EndDefer Ends an asynchronous request to defer a message.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBody(Of T) Deserializes the brokered message body into an object of the specified type by using the supplied XmlObjectSerializer with a binary XmlDictionaryReader.
Public method GetBody(Of T)(XmlObjectSerializer) Deserializes the brokered message body into an object of the specified type by using the supplied XmlObjectSerializer with a binary XmlObjectSerializer.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a string that represents the current message. (Overrides Object.ToString.)
Top
  Name Description
Explicit interface implemetation Private method IXmlSerializable.GetSchema This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return Nothing (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
Explicit interface implemetation Private method IXmlSerializable.ReadXml Generates an object from its XML representation. This method is reserved for internal use and should not be used directly or indirectly (e.g. using a serializer or a formatter).
Explicit interface implemetation Private method IXmlSerializable.WriteXml Converts an object into its XML representation. This method is reserved for internal use and should not be used directly or indirectly (e.g. using a serializer or a formatter).
Top
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)