DocumentCollection Class

Definition

Represents a document collection in the Azure DocumentDB database service. A collection is a named logical container for documents.

public class DocumentCollection : Microsoft.Azure.Documents.Resource
Inheritance
DocumentCollection

Inherited Members

Microsoft.Azure.Documents.JsonSerializable

Microsoft.Azure.Documents.Resource

Remarks

A database may contain zero or more named collections and each collection consists of zero or more JSON documents. Being schema-free, the documents in a collection do not need to share the same structure or fields. Since collections are application resources, they can be authorized using either the master key or resource keys. Refer to http://azure.microsoft.com/documentation/articles/documentdb-resources/#collections for more details on collections.

Constructors

DocumentCollection()

Initializes a new instance of the DocumentCollection class for the Azure DocumentDB database service.

Properties

ConflictsLink

Gets the self-link for conflicts in a collection from the Azure DocumentDB database service.

DefaultTimeToLive

Gets the default time to live in seconds for documents in a collection from the Azure DocumentDB database service.

DocumentsLink

Gets the self-link for documents in a collection from the Azure DocumentDB database service.

IndexingPolicy

Gets the IndexingPolicy associated with the collection from the Azure DocumentDB database service.

PartitionKey

Gets or sets PartitionKeyDefinition object in the Azure DocumentDB database service.

StoredProceduresLink

Gets the self-link for stored procedures in a collection from the Azure DocumentDB database service.

TriggersLink

Gets the self-link for triggers in a collection from the Azure DocumentDB database service.

UserDefinedFunctionsLink

Gets the self-link for user defined functions in a collection from the Azure DocumentDB database service.

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)