次の方法で共有


AzureCosmosExtensions Class

Definition

Extension methods for adding Azure Cosmos DB resources to the application model.

public static class AzureCosmosExtensions
type AzureCosmosExtensions = class
Public Module AzureCosmosExtensions
Inheritance
AzureCosmosExtensions

Methods

AddAzureCosmosDB(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureCosmosDBResource>, ResourceModuleConstruct,CosmosDBAccount,IEnumerable<CosmosDBSqlDatabase>>)

Adds an Azure Cosmos DB connection to the application model.

AddAzureCosmosDB(IDistributedApplicationBuilder, String)

Adds an Azure Cosmos DB connection to the application model.

AddContainer(IResourceBuilder<AzureCosmosDBDatabaseResource>, String, String, String)

Adds a container to the associated Cosmos DB database resource.

AddCosmosDatabase(IResourceBuilder<AzureCosmosDBResource>, String, String)

Adds a database to the associated Cosmos DB account resource.

AddDatabase(IResourceBuilder<AzureCosmosDBResource>, String)
Obsolete.

Adds a database to the associated Cosmos DB account resource.

RunAsEmulator(IResourceBuilder<AzureCosmosDBResource>, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>)

Configures an Azure Cosmos DB resource to be emulated using the Azure Cosmos DB emulator with the NoSQL API. This resource requires an AzureCosmosDBResource to be added to the application model. For more information on the Azure Cosmos DB emulator, see .

RunAsPreviewEmulator(IResourceBuilder<AzureCosmosDBResource>, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>)

Configures an Azure Cosmos DB resource to be emulated using the Azure Cosmos DB Linux-based emulator (preview) with the NoSQL API. This resource requires an AzureCosmosDBResource to be added to the application model. For more information on the Azure Cosmos DB emulator, see .

WithAccessKeyAuthentication(IResourceBuilder<AzureCosmosDBResource>)

Configures the resource to use access key authentication with Azure Cosmos DB.

WithDataExplorer(IResourceBuilder<AzureCosmosDBEmulatorResource>, Nullable<Int32>)

Configures the Azure Cosmos DB preview emulator to expose the Data Explorer endpoint.

WithDataVolume(IResourceBuilder<AzureCosmosDBEmulatorResource>, String)

Adds a named volume for the data folder to an Azure Cosmos DB emulator resource.

WithGatewayPort(IResourceBuilder<AzureCosmosDBEmulatorResource>, Nullable<Int32>)

Configures the gateway port for the Azure Cosmos DB emulator.

WithPartitionCount(IResourceBuilder<AzureCosmosDBEmulatorResource>, Int32)

Configures the partition count for the Azure Cosmos DB emulator.

Applies to