Language

BrokeredMessage.LockToken Property

Definition

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

public Guid LockToken { get; }
member this.LockToken : Guid
Public ReadOnly Property LockToken As Guid

Property Value

System.Guid

The lock token assigned by Service Bus to this message.

Exceptions

System.ObjectDisposedException

Thrown if the message is in disposed state.

System.InvalidOperationException

Thrown if the message was not received from the ServiceBus.

Applies to