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

ChangeFeedProcessorBuilder.WithLeaseContainer(Container) 方法

定义

设置 Cosmos 容器以保留租约状态

public Microsoft.Azure.Cosmos.ChangeFeedProcessorBuilder WithLeaseContainer (Microsoft.Azure.Cosmos.Container leaseContainer);
member this.WithLeaseContainer : Microsoft.Azure.Cosmos.Container -> Microsoft.Azure.Cosmos.ChangeFeedProcessorBuilder
Public Function WithLeaseContainer (leaseContainer As Container) As ChangeFeedProcessorBuilder

参数

leaseContainer
Container

用于保存租约的 Cosmos 容器的实例。

返回

要使用的 的 ChangeFeedProcessorBuilder 实例。

适用于