OnAbandon Method
Abandons the message.
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
Syntax
'Declaration
Protected Overrides Sub OnAbandon ( _
trackingContext As TrackingContext, _
lockTokens As IEnumerable(Of Guid), _
timeout As TimeSpan _
)
'Usage
Dim trackingContext As TrackingContext
Dim lockTokens As IEnumerable(Of Guid)
Dim timeout As TimeSpan
Me.OnAbandon(trackingContext, lockTokens, _
timeout)
protected override void OnAbandon(
TrackingContext trackingContext,
IEnumerable<Guid> lockTokens,
TimeSpan timeout
)
protected:
virtual void OnAbandon(
TrackingContext^ trackingContext,
IEnumerable<Guid>^ lockTokens,
TimeSpan timeout
) override
abstract OnAbandon :
trackingContext:TrackingContext *
lockTokens:IEnumerable<Guid> *
timeout:TimeSpan -> unit
override OnAbandon :
trackingContext:TrackingContext *
lockTokens:IEnumerable<Guid> *
timeout:TimeSpan -> unit
protected override function OnAbandon(
trackingContext : TrackingContext,
lockTokens : IEnumerable<Guid>,
timeout : TimeSpan
)
Parameters
- trackingContext
Type: Microsoft.ServiceBus.Tracing. . :: . .TrackingContext
The context information associated by a transaction tracking this operation.
- lockTokens
Type: System.Collections.Generic. . :: . .IEnumerable< (Of < ( <'Guid> ) > ) >
The lock tokens of the BrokeredMessage collection. This is only available when a message is received in peek-lock mode. The lock token is used internally to complete or abandon a message.
- timeout
Type: System. . :: . .TimeSpan
The time span interval the operation waits before it times out.