FÖRSÄLJNING: 1-800-867-1389
EN
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

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.

  NameDescription
Public methodBrokeredMessage()Initializes a new instance of the BrokeredMessage class.
Public methodBrokeredMessage(Stream)Initializes a new instance of the BrokeredMessage class.
Public methodBrokeredMessage(Object)Initializes a new instance of the BrokeredMessage class from a given object by using DataContractSerializer with a binary XmlDictionaryWriter.
Public methodBrokeredMessage(Stream, Boolean)Initializes a new instance of the BrokeredMessage class using the supplied stream as its body.
Public methodBrokeredMessage(Object, XmlObjectSerializer)Initializes a new instance of the BrokeredMessage class from a given object using the provided XmlObjectSerializer.
Top

  NameDescription
Public propertyContentTypeGets or sets the type of the content.
Public propertyCorrelationIdGets or sets the identifier of the correlation.
Public propertyDeliveryCountGets the number of deliveries.
Public propertyEnqueuedSequenceNumberGets or sets the enqueued sequence number of the message.
Public propertyEnqueuedTimeUtcGets or sets the date and time of the sent time in UTC.
Public propertyExpiresAtUtcGets the date and time in UTC at which the message is set to expire.
Public propertyForcePersistenceGets or sets a value that indicates whether the message is to be persisted to the database immediately, instead of being held in memory for a short time. This property is ignored if the message is sent to a non-express queue or topic.
Public propertyIsBodyConsumedSpecifies whether the message has been consumed.
Public propertyLabelGets or sets the application specific label.
Public propertyLockedUntilUtcGets the date and time in UTC until which the message will be locked in the queue/subscription.
Public propertyLockTokenGets the lock token assigned by Service Bus to this message.
Public propertyMessageIdGets or sets the identifier of the message.
Public propertyPartitionKeyGets or sets a partition key for sending a transactional message to a queue or topic that is not session-aware.
Public propertyPropertiesGets the application specific message properties.
Public propertyReplyToGets or sets the address of the queue to reply to.
Public propertyReplyToSessionIdGets or sets the session identifier to reply to.
Public propertyScheduledEnqueueTimeUtcGets or sets the date and time in UTC at which the message will be enqueued. This property returns the time in UTC; when setting the property, the supplied DateTime value must also be in UTC.
Public propertySequenceNumberGets the unique number assigned to a message by the Service Bus.
Public propertySessionIdGets or sets the identifier of the session.
Public propertySizeGets the size of the message in bytes.
Public propertyStateGets or sets the state of the message.
Public propertyTimeToLiveGets 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.TimeToLive is the maximum lifetime that a message can receive, but its value cannot exceed the entity specified the DefaultMessageTimeToLive value on the destination queue or subscription. If a lower TimeToLive value is specified, it will be applied to the individual message. However, a larger value specified on the message will be overridden by the entity’s DefaultMessageTimeToLive value.
Public propertyToGets or sets the send to address.
Public propertyViaPartitionKeyGets or sets a partition key value when a transaction is to be used to send messages via a transfer queue.
Top

  NameDescription
Public methodAbandon()Abandons the lock on a peek-locked message.
Public methodAbandon(IDictionary<String, Object>)Abandons the lock on a peek-locked message.
Public methodAbandonAsync()Asynchronously abandons the lock on a peek-locked message.
Public methodAbandonAsync(IDictionary<String, Object>)Asynchronously abandons the lock on a peek-locked message.
Public methodBeginAbandon(AsyncCallback, Object)Begins an asynchronous operation to abandon the lock on a peek-locked message.
Public methodBeginAbandon(IDictionary<String, Object>, AsyncCallback, Object)Begins an asynchronous operation to abandon the lock on a peek-locked message.
Public methodBeginCompleteBegins an asynchronous operation to complete a message.
Public methodBeginDeadLetter(AsyncCallback, Object)Begins an asynchronous operation to move the message to the dead letter queue.
Public methodBeginDeadLetter(IDictionary<String, Object>, AsyncCallback, Object)Begins an asynchronous operation to move the message to the dead letter queue.
Public methodBeginDeadLetter(String, String, AsyncCallback, Object)Begins an asynchronous operation to move the message to the dead letter queue.
Public methodBeginDefer(AsyncCallback, Object)Begins an asynchronous operation to defer a message.
Public methodBeginDefer(IDictionary<String, Object>, AsyncCallback, Object)Begins an asynchronous operation to defer a message.
Public methodBeginRenewLockBegins an asynchronous operation to renew lock on a message.
Public methodCloneClones a message, so that it is possible to send a clone of a message as a new message.
Public methodCompleteCompletes the receive operation of a message and indicates that the message should be marked as processed and deleted.
Public methodCompleteAsyncAsynchronously completes the receive operation of a message and indicates that the message should be marked as processed and deleted.
Public methodDeadLetter()Moves the message to the dead letter queue.
Public methodDeadLetter(IDictionary<String, Object>)Moves the message to the dead letter queue.
Public methodDeadLetter(String, String)Moves the message to the dead letter queue.
Public methodDeadLetterAsync()Asynchronously moves the message to the dead letter queue.
Public methodDeadLetterAsync(IDictionary<String, Object>)Asynchronously moves the message to the dead letter queue.
Public methodDeadLetterAsync(String, String)Asynchronously moves the message to the dead letter queue.
Public methodDefer()Indicates that the receiver wants to defer the processing for this message.
Public methodDefer(IDictionary<String, Object>)Indicates that the receiver wants to defer the processing for this message.
Public methodDeferAsync()Asynchronously indicates that the receiver wants to defer the processing for this message.
Public methodDeferAsync(IDictionary<String, Object>)Asynchronously indicates that the receiver wants to defer the processing for this message.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEndAbandonEnds an asynchronous request to abandon the lock on a peek-locked message.
Public methodEndCompleteEnds an asynchronous operation to complete a message.
Public methodEndDeadLetterEnds an asynchronous request to move the message to the dead letter queue.
Public methodEndDeferEnds an asynchronous request to defer a message.
Public methodEndRenewLockEnds an asynchronous request to renew lock on a message.
Public methodEquals (Inherited from Object.)
Public methodGetBody<T>()Deserializes the brokered message body into an object of the specified type by using the DataContractSerializer with a binary XmlDictionaryReader.
Public methodGetBody<T>(XmlObjectSerializer)Deserializes the brokered message body into an object of the specified type by using the supplied XmlObjectSerializer.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodRenewLockRenews the lock on a message.
Public methodRenewLockAsyncAsynchronously renews the lock on a message.
Public methodToStringReturns a string that represents the current message. (Overrides Object.ToString().)
Top

  NameDescription
Explicit interface implemetationPrivate methodIXmlSerializable.GetSchemaThis method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
Explicit interface implemetationPrivate methodIXmlSerializable.ReadXmlGenerates an object from its XML representation. This method is reserved for internal use and should not be used directly or indirectly (for example, using a serializer or a formatter).
Explicit interface implemetationPrivate methodIXmlSerializable.WriteXmlConverts 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.
Var detta till hjälp?
(1500 tecken kvar)
Tack för dina kommentarer

Gruppinnehåll

Lägg till
Visa:
© 2014 Microsoft