AzureCosmosDBDatabaseResource
Class net10.0
Represents an Azure Cosmos DB Database. Initializes a new instance of the
AzureCosmosDBDatabaseResource class. namespace Aspire.Hosting.Azure;
public class AzureCosmosDBDatabaseResource : 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.AzureCosmosDBResource>, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences, Aspire.Hosting.Azure.IResourceWithAzureFunctionsConfig{ // ...} ResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithParentIResourceWithParent<AzureCosmosDBResource>IValueProviderIValueWithReferencesIResourceWithAzureFunctionsConfig
Remarks
Section titled Remarks Use
AzureProvisioningResourceExtensions.ConfigureInfrastructure to configure specific Azure.Provisioning properties. Constructors1
Section titled ConstructorsAzureCosmosDBDatabaseResource(string, string, AzureCosmosDBResource) Represents an Azure Cosmos DB Database. Initializes a new instance of the
AzureCosmosDBDatabaseResource class. Properties3
Section titled PropertiesConnectionStringExpressiongetReferenceExpression Gets the connection string expression for the Azure Cosmos DB database.
DatabaseNameget; setstring Gets or sets the database name.
Parentget Gets the parent Azure Cosmos DB account resource.