共用方式為


CosmosDbContextOptionsBuilder.GatewayModeMaxConnectionLimit(Int32) 方法

定義

設定 Azure Cosmos DB 服務中目標服務端點允許的並行連線數目上限。

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder GatewayModeMaxConnectionLimit (int connectionLimit);
abstract member GatewayModeMaxConnectionLimit : int -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
override this.GatewayModeMaxConnectionLimit : int -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
Public Overridable Function GatewayModeMaxConnectionLimit (connectionLimit As Integer) As CosmosDbContextOptionsBuilder

參數

connectionLimit
Int32

允許的並行連線數目上限。

傳回

備註

如需詳細資訊和範例,請參閱搭配 EF Core 使用 DbCoNtextOptions存取 Azure Cosmos DB

適用於