Click or drag to resize

DocumentApiClient.PutDocumentAsync<T> Method (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.

Namespace:  ArangoDBNetStandard.DocumentApi
Assembly:  ArangoDBNetStandard (in ArangoDBNetStandard.dll) Version: 1.1.0
Syntax
public virtual Task<PutDocumentResponse<T>> PutDocumentAsync<T>(
	string collectionName,
	string documentKey,
	T doc,
	PutDocumentQuery opts = null,
	DocumentHeaderProperties headers = null
)

Parameters

collectionName
Type: System.String
documentKey
Type: System.String
doc
Type: T
opts (Optional)
Type: ArangoDBNetStandard.DocumentApi.Models.PutDocumentQuery
headers (Optional)
Type: ArangoDBNetStandard.DocumentApi.Models.DocumentHeaderProperties
The DocumentHeaderProperties values.

Type Parameters

T

Return Value

Type: Task<PutDocumentResponse<T>>

Implements

IDocumentApiClient.PutDocumentAsync<T>(String, String, T, PutDocumentQuery, DocumentHeaderProperties)
See Also