Skip to content
Docs Try Aspire

AzureCosmosDBContainerResource Constructors

Class Constructors 2 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)
{
// ...
}
}
name string The resource name.
containerName string The container name.
partitionKeyPaths IEnumerable<string> The hierarchical partition key paths.
parent AzureCosmosDBDatabaseResource The 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)
{
// ...
}
}
name string The resource name.
containerName string The container name.
partitionKeyPath string The partition key path.
parent AzureCosmosDBDatabaseResource The parent Azure Cosmos DB database resource.