Delen via


SqlContainerResource Class

Definition

Cosmos DB SQL container resource object

public class SqlContainerResource
type SqlContainerResource = class
Public Class SqlContainerResource
Inheritance
SqlContainerResource

Constructors

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.

Properties

AnalyticalStorageTtl

Gets or sets analytical TTL.

ConflictResolutionPolicy

Gets or sets the conflict resolution policy for the container.

DefaultTtl

Gets or sets default time to live

Id

Gets or sets name of the Cosmos DB SQL container

IndexingPolicy

Gets or sets the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container

PartitionKey

Gets or sets the configuration of the partition key to be used for partitioning data into multiple partitions

UniqueKeyPolicy

Gets or sets the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.

Methods

Validate()

Validate the object.

Applies to