SALES: 1-800-867-1380

BrokeredMessage.LockToken Property

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

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

'Declaration
Public Property LockToken As Guid
	Get
	Friend Set
'Usage
Dim instance As BrokeredMessage
Dim value As Guid

value = instance.LockToken

Property Value

Type: System.Guid
The lock token assigned by Service Bus to this message.

ExceptionCondition
ObjectDisposedException

Thrown if the message is in disposed state.

InvalidOperationException

Thrown if the message was not received from the ServiceBus.

This is only available when a message is received in peek-lock mode.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft