CosmosClientBuilder.Build Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET