Skip to content
DocsTry Aspire
DocsTry

AzureCosmosDBContainerResource Constructors

ClassConstructors2 members
Represents an Azure Cosmos DB Database Container.
Constructor(string, string, IEnumerable<string>, AzureCosmosDBDatabaseResource)Section titled Constructor(string, string, IEnumerable<string>, AzureCosmosDBDatabaseResource)
Initializes a new instance of the AzureCosmosDBContainerResource class.
public class AzureCosmosDBContainerResource
{
public AzureCosmosDBContainerResource(
string name,
string containerName,
IEnumerable<string> partitionKeyPaths,
AzureCosmosDBDatabaseResource parent)
{
// ...
}
}
namestringThe resource name.
containerNamestringThe container name.
partitionKeyPathsIEnumerable<string>The hierarchical partition key paths.
parentAzureCosmosDBDatabaseResourceThe parent Azure Cosmos DB database resource.
Constructor(string, string, string, AzureCosmosDBDatabaseResource)Section titled Constructor(string, string, string, AzureCosmosDBDatabaseResource)
Initializes a new instance of the AzureCosmosDBContainerResource class.
public class AzureCosmosDBContainerResource
{
public AzureCosmosDBContainerResource(
string name,
string containerName,
string partitionKeyPath,
AzureCosmosDBDatabaseResource parent)
{
// ...
}
}
namestringThe resource name.
containerNamestringThe container name.
partitionKeyPathstringThe partition key path.
parentAzureCosmosDBDatabaseResourceThe parent Azure Cosmos DB database resource.