你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ILeaseManager.RenewLeaseAsync(Lease) 方法

定义

续订此主机当前持有的租约。

如果租约被盗、过期或解除,则无法续订。 必须调用 getLease () ,然后再次获取Lease () 。

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

参数

lease
Lease

要续订的租约

返回

如果租约已成功续订,则为 true;否则为 false

适用于