共用方式為


ChangeFeedProcessorBuilder.WithLeaseContainer(Container) Method

Definition

Sets the Cosmos Container to hold the leases state

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

Parameters

leaseContainer
Container

Instance of a Cosmos Container to hold the leases.

Returns

The instance of ChangeFeedProcessorBuilder to use.

Applies to