Share via


ReleaseLock Method

Releases the lock on a message in the message buffer.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method ReleaseLock(Message) Releases the lock on the specified message in the message buffer.
Public method ReleaseLock(Uri) Releases the lock on the message contained at the specified URI.

Top

Remarks

ReleaseLock()()()() is used on a message after it has been locked by the client using one of the Peek/Lock methods. Usually a client will call DeleteMessageBuffer()()()() on the message, signifying that the message was successfully retrieved. However, there may be some cases in which you will want to unlock the message rather than deleting it: in essence, “peeking” at the message and putting it back, rather than officially pulling the message out of the message buffer.

See Also

Reference

MessageBufferClient Class

Microsoft.ServiceBus Namespace