Share via


CosmosDbContextOptionsBuilder.LimitToEndpoint(Boolean) Method

Definition

Limits the operations to the provided endpoint.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder LimitToEndpoint (bool enable = true);
abstract member LimitToEndpoint : bool -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
override this.LimitToEndpoint : bool -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
Public Overridable Function LimitToEndpoint (Optional enable As Boolean = true) As CosmosDbContextOptionsBuilder

Parameters

enable
Boolean

true to limit the operations to the provided endpoint.

Returns

Remarks

See Using DbContextOptions, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Applies to