共用方式為


ILeaseManager.ReleaseLeaseAsync(Lease) Method

Definition

Give up a lease currently held by this host.

If the lease has been stolen, or expired, releasing it is unnecessary, and will fail if attempted.

public System.Threading.Tasks.Task<bool> ReleaseLeaseAsync (Microsoft.Azure.EventHubs.Processor.Lease lease);
abstract member ReleaseLeaseAsync : Microsoft.Azure.EventHubs.Processor.Lease -> System.Threading.Tasks.Task<bool>
Public Function ReleaseLeaseAsync (lease As Lease) As Task(Of Boolean)

Parameters

lease
Lease

Lease to be given up

Returns

true if the lease was released successfully, false if not

Applies to