Share via


CosmosClientBuilder.WithConnectionModeDirect Method

Definition

Sets the connection mode to Direct. This is used by the client when connecting to the Azure Cosmos DB service.

public Azure.Cosmos.Fluent.CosmosClientBuilder WithConnectionModeDirect ();
member this.WithConnectionModeDirect : unit -> Azure.Cosmos.Fluent.CosmosClientBuilder
Public Function WithConnectionModeDirect () As CosmosClientBuilder

Returns

The current CosmosClientBuilder.

Remarks

For more information, see Connection policy: Use direct connection mode.

Applies to

See also