CosmosDbContextOptionsBuilder.LimitToEndpoint(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
限制操作範圍至所提供的端點。
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
參數
- enable
- Boolean
true 限制操作範圍至所提供的端點。
傳回
備註
更多資訊與範例請參閱使用 DbContextOptions 及 Access Azure Cosmos DB with EF Core。