共用方式為


ILeaseManager.DeleteLeaseAsync(Lease) Method

Definition

Delete the lease info for the given partition from the store. If there is no stored lease for the given partition, that is treated as success.

public System.Threading.Tasks.Task DeleteLeaseAsync (Microsoft.Azure.EventHubs.Processor.Lease lease);
abstract member DeleteLeaseAsync : Microsoft.Azure.EventHubs.Processor.Lease -> System.Threading.Tasks.Task
Public Function DeleteLeaseAsync (lease As Lease) As Task

Parameters

lease
Lease

Lease info for the desired partition as previously obtained from GetLeaseAsync()

Returns

Applies to