Click or drag to resize

IDocumentApiClient Methods

The IDocumentApiClient type exposes the following members.

Methods
  NameDescription
Public methodDeleteDocumentAsync(String, DeleteDocumentQuery, DocumentHeaderProperties)
Delete a document based on its document ID.
Public methodDeleteDocumentAsync(String, String, DeleteDocumentQuery, DocumentHeaderProperties)
Delete a document.
Public methodDeleteDocumentAsyncT(String, DeleteDocumentQuery, DocumentHeaderProperties)
Delete a document based on its document ID.
Public methodDeleteDocumentAsyncT(String, String, DeleteDocumentQuery, DocumentHeaderProperties)
Delete a document.
Public methodDeleteDocumentsAsync(String, IListString, DeleteDocumentsQuery, DocumentHeaderProperties)
Delete multiple documents based on the passed document selectors. A document selector is either the document ID or the document Key.
Public methodDeleteDocumentsAsyncT(String, IListString, DeleteDocumentsQuery, DocumentHeaderProperties)
Delete multiple documents based on the passed document selectors. A document selector is either the document ID or the document Key.
Public methodGetDocumentAsyncT(String, DocumentHeaderProperties)
Get an existing document based on its Document ID.
Public methodGetDocumentAsyncT(String, String, DocumentHeaderProperties)
Get an existing document.
Public methodGetDocumentsAsyncT
Get multiple documents.
Public methodHeadDocumentAsync(String, DocumentHeaderProperties)
Like GET, but only returns the header fields and not the body. You can use this call to get the current revision of a document or check if the document was deleted. HEAD/_api/document/{document-handle}
Public methodHeadDocumentAsync(String, String, DocumentHeaderProperties)
Like GET, but only returns the header fields and not the body. You can use this call to get the current revision of a document or check if the document was deleted. HEAD /_api/document/{document-handle}
Public methodPatchDocumentAsyncT, U(String, T, PatchDocumentQuery, ApiClientSerializationOptions, DocumentHeaderProperties)
Partially updates the document identified by document-handle. The body of the request must contain a JSON document with the attributes to patch(the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there. PATCH/_api/document/{document-handle}
Public methodPatchDocumentAsyncT, U(String, String, T, PatchDocumentQuery, DocumentHeaderProperties)
Partially updates the document identified by document-handle. The body of the request must contain a JSON document with the attributes to patch(the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there. PATCH/_api/document/{document-handle}
Public methodPatchDocumentsAsyncT, U
Partially updates documents, the documents to update are specified by the _key attributes in the body objects.The body of the request must contain a JSON array of document updates with the attributes to patch(the patch documents). All attributes from the patch documents will be added to the existing documents if they do not yet exist, and overwritten in the existing documents if they do exist there. Setting an attribute value to null in the patch documents will cause a value of null to be saved for the attribute by default. If ignoreRevs is false and there is a _rev attribute in a document in the body and its value does not match the revision of the corresponding document in the database, the precondition is violated. PATCH/_api/document/{collection}
Public methodPostDocumentAsyncT(String, T, PostDocumentsQuery, ApiClientSerializationOptions, DocumentHeaderProperties)
Post a single document.
Public methodPostDocumentAsyncT, U(String, T, PostDocumentsQuery, ApiClientSerializationOptions, DocumentHeaderProperties)
Post a single document with the possibility to specify a different type for the new document object returned in the response.
Public methodPostDocumentsAsyncT
Post multiple documents in a single request.
Public methodPutDocumentAsyncT(String, T, PutDocumentQuery, ApiClientSerializationOptions, DocumentHeaderProperties)
Replaces the document with the provided document ID with the one in the body, provided there is such a document and no precondition is violated.
Public methodPutDocumentAsyncT(String, String, T, PutDocumentQuery, DocumentHeaderProperties)
Replaces the document based on its Document ID with the one in the body, provided there is such a document and no precondition is violated.
Public methodPutDocumentsAsyncT
Replace multiple documents.
Top
See Also