SqlContainerResource 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
SqlContainerResource() |
Initializes a new instance of the SqlContainerResource class. |
SqlContainerResource(String, IndexingPolicy, ContainerPartitionKey, Nullable<Int32>, UniqueKeyPolicy, ConflictResolutionPolicy, Nullable<Int64>) |
Initializes a new instance of the SqlContainerResource class. |
SqlContainerResource()
Initializes a new instance of the SqlContainerResource class.
public SqlContainerResource ();
Public Sub New ()
Applies to
SqlContainerResource(String, IndexingPolicy, ContainerPartitionKey, Nullable<Int32>, UniqueKeyPolicy, ConflictResolutionPolicy, Nullable<Int64>)
Initializes a new instance of the SqlContainerResource class.
public SqlContainerResource (string id, Microsoft.Azure.Management.CosmosDB.Models.IndexingPolicy indexingPolicy = default, Microsoft.Azure.Management.CosmosDB.Models.ContainerPartitionKey partitionKey = default, int? defaultTtl = default, Microsoft.Azure.Management.CosmosDB.Models.UniqueKeyPolicy uniqueKeyPolicy = default, Microsoft.Azure.Management.CosmosDB.Models.ConflictResolutionPolicy conflictResolutionPolicy = default, long? analyticalStorageTtl = default);
new Microsoft.Azure.Management.CosmosDB.Models.SqlContainerResource : string * Microsoft.Azure.Management.CosmosDB.Models.IndexingPolicy * Microsoft.Azure.Management.CosmosDB.Models.ContainerPartitionKey * Nullable<int> * Microsoft.Azure.Management.CosmosDB.Models.UniqueKeyPolicy * Microsoft.Azure.Management.CosmosDB.Models.ConflictResolutionPolicy * Nullable<int64> -> Microsoft.Azure.Management.CosmosDB.Models.SqlContainerResource
Public Sub New (id As String, Optional indexingPolicy As IndexingPolicy = Nothing, Optional partitionKey As ContainerPartitionKey = Nothing, Optional defaultTtl As Nullable(Of Integer) = Nothing, Optional uniqueKeyPolicy As UniqueKeyPolicy = Nothing, Optional conflictResolutionPolicy As ConflictResolutionPolicy = Nothing, Optional analyticalStorageTtl As Nullable(Of Long) = Nothing)
Parameters
- id
- String
Name of the Cosmos DB SQL container
- indexingPolicy
- IndexingPolicy
The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container
- partitionKey
- ContainerPartitionKey
The configuration of the partition key to be used for partitioning data into multiple partitions
- uniqueKeyPolicy
- UniqueKeyPolicy
The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
- conflictResolutionPolicy
- ConflictResolutionPolicy
The conflict resolution policy for the container.
Applies to
Azure SDK for .NET