Eksportuj (0) Drukuj
Rozwiń wszystko
EN
Ta zawartość nie jest dostępna w wymaganym języku. Wersja w języku angielskim znajduje się tutaj.

BrokeredMessage.SequenceNumber Property

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

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public long SequenceNumber { get; internal set; }

Property Value

Type: System.Int64
The unique number assigned to a message by the Service Bus.

ExceptionCondition
ObjectDisposedException

Thrown if the message is in disposed state.

InvalidOperationException

Thrown if the message was not received from the message server.

The sequence number is scoped to the queue or topic. The value is only available on the message received from the Service Bus.

For queues, sequence numbers are assigned to each message in ascending order. For topics and subscriptions, the sequence number for every subscription starts at 1. Therefore, if you create a new subscription, SequenceNumber is set to 1, but applies to the new message that was published after the subscription was created.

Zawartość społeczności

Dodaj
Pokaż:
© 2014 Microsoft