Share via


CosmosDatabaseBuilder.AddKeyedContainer(String) Method

Definition

Register a Container against the database managed with CosmosDatabaseBuilder as a keyed singleton.

public Aspire.Microsoft.Azure.Cosmos.CosmosDatabaseBuilder AddKeyedContainer(string name);
member this.AddKeyedContainer : string -> Aspire.Microsoft.Azure.Cosmos.CosmosDatabaseBuilder
Public Function AddKeyedContainer (name As String) As CosmosDatabaseBuilder

Parameters

name
String

The name of the container to register.

Returns

A CosmosDatabaseBuilder that can be used for further chaining.

Applies to