共用方式為


CosmosClientBuilder.WithPriorityLevel(PriorityLevel) Method

Definition

Sets the priority level for requests created using cosmos client.

public Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder WithPriorityLevel (Microsoft.Azure.Cosmos.PriorityLevel priorityLevel);
member this.WithPriorityLevel : Microsoft.Azure.Cosmos.PriorityLevel -> Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder
Public Function WithPriorityLevel (priorityLevel As PriorityLevel) As CosmosClientBuilder

Parameters

priorityLevel
PriorityLevel

The desired priority level for the client.

Returns

The current CosmosClientBuilder.

Remarks

If priority level is also set at request level in Microsoft.Azure.Documents.Client.RequestOptions.PriorityLevel, that priority is used. If WithBulkExecution(Boolean) is set to true, priority level set on the CosmosClient is used.

Applies to