AzureCosmosDBContainerResource
Class net10.0
Represents an Azure Cosmos DB Database Container.
namespace Aspire.Hosting.Azure;
public class AzureCosmosDBContainerResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithParent, Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.Azure.AzureCosmosDBDatabaseResource>, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences, Aspire.Hosting.Azure.IResourceWithAzureFunctionsConfig{ // ...} ResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithParentIResourceWithParent<AzureCosmosDBDatabaseResource>IValueProviderIValueWithReferencesIResourceWithAzureFunctionsConfig
8 members
Remarks
Section titled Remarks Use
AzureProvisioningResourceExtensions.ConfigureInfrastructure to configure specific Azure.Provisioning properties. Constructors2
Section titled ConstructorsAzureCosmosDBContainerResource(string, string, IEnumerable<string>, AzureCosmosDBDatabaseResource) Initializes a new instance of the
AzureCosmosDBContainerResource class. AzureCosmosDBContainerResource(string, string, string, AzureCosmosDBDatabaseResource) Initializes a new instance of the
AzureCosmosDBContainerResource class. Properties6
Section titled PropertiesConnectionStringExpressiongetReferenceExpression Gets the connection string expression for the Azure Cosmos DB Database Container.
ContainerNameget; setstring Gets or sets the container name.
ContainerPropertiesgetContainerProperties Gets the container properties for this azure cosmos db container resource.
Parentget Gets the parent Azure Cosmos DB database resource.
PartitionKeyPathget; setstring Gets or sets the partition key path.
PartitionKeyPathsget; setIReadOnlyList<string> Gets or sets the hierarchical partition keys.