Dela via


CosmosClientBuilder.Build Method

Definition

A method to create the cosmos client CosmosClient is thread-safe. Its recommended to maintain a single instance of CosmosClient per lifetime of the application which enables efficient connection management and performance. Please refer to the performance guide.

public Microsoft.Azure.Cosmos.CosmosClient Build ();
member this.Build : unit -> Microsoft.Azure.Cosmos.CosmosClient
Public Function Build () As CosmosClient

Returns

An instance of CosmosClient.

Remarks

Setting this property after sending any request won't have any effect. The returned reference doesn't guarantee credentials or connectivity validations because creation doesn't make any network calls.

Applies to