DocumentClient.CreateDocumentAsync Method

Creates a document as an asychronous operation.

Namespace:  Microsoft.Azure.Documents.Client
Assembly:  Microsoft.Azure.Documents.Client (in Microsoft.Azure.Documents.Client.dll)

public Task<ResourceResponse<Document>> CreateDocumentAsync(
	string documentCollectionLink,
	Object document,
	RequestOptions options
)

Parameters

documentCollectionLink
Type: System.String
The self-link of the collection to create the document in.
document
Type: System.Object
The document object.
options
Type: Microsoft.Azure.Documents.Client.RequestOptions
The request options for the request.

Return Value

Type: System.Threading.Tasks.Task<ResourceResponse<Document>>
The task object representing the service response for the asynchronous operation.
Show: