Share via


AzureCosmosDBContainerResource Constructors

Definition

Overloads

AzureCosmosDBContainerResource(String, String, IEnumerable<String>, AzureCosmosDBDatabaseResource)

Source:
AzureCosmosDBContainerResource.cs

Initializes a new instance of the AzureCosmosDBContainerResource class.

public AzureCosmosDBContainerResource(string name, string containerName, System.Collections.Generic.IEnumerable<string> partitionKeyPaths, Aspire.Hosting.Azure.AzureCosmosDBDatabaseResource parent);
new Aspire.Hosting.Azure.AzureCosmosDBContainerResource : string * string * seq<string> * Aspire.Hosting.Azure.AzureCosmosDBDatabaseResource -> Aspire.Hosting.Azure.AzureCosmosDBContainerResource
Public Sub New (name As String, containerName As String, partitionKeyPaths As IEnumerable(Of String), parent As AzureCosmosDBDatabaseResource)

Parameters

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.

Applies to

AzureCosmosDBContainerResource(String, String, String, AzureCosmosDBDatabaseResource)

Source:
AzureCosmosDBContainerResource.cs
Source:
AzureCosmosDBContainerResource.cs
Source:
AzureCosmosDBContainerResource.cs
Source:
AzureCosmosDBContainerResource.cs

Initializes a new instance of the AzureCosmosDBContainerResource class.

public AzureCosmosDBContainerResource(string name, string containerName, string partitionKeyPath, Aspire.Hosting.Azure.AzureCosmosDBDatabaseResource parent);
new Aspire.Hosting.Azure.AzureCosmosDBContainerResource : string * string * string * Aspire.Hosting.Azure.AzureCosmosDBDatabaseResource -> Aspire.Hosting.Azure.AzureCosmosDBContainerResource
Public Sub New (name As String, containerName As String, partitionKeyPath As String, parent As AzureCosmosDBDatabaseResource)

Parameters

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.

Remarks

Use ConfigureInfrastructure<T>(IResourceBuilder<T>, Action<AzureResourceInfrastructure>) to configure specific Aspire.Hosting.Azure.Provisioning properties.

Applies to