CosmosDatabaseBuilder.AddKeyedContainer(String) 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.
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.