AzureCosmosDBContainerResource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AzureCosmosDBContainerResource(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. |
AzureCosmosDBContainerResource(String, String, IEnumerable<String>, AzureCosmosDBDatabaseResource)
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.
The parent Azure Cosmos DB database resource.
Applies to
AzureCosmosDBContainerResource(String, String, String, AzureCosmosDBDatabaseResource)
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.
The parent Azure Cosmos DB database resource.
Remarks
Use ConfigureInfrastructure<T>(IResourceBuilder<T>, Action<AzureResourceInfrastructure>) to configure specific Aspire.Hosting.Azure.Provisioning properties.