IDocumentApiClientPutDocumentAsyncT 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 Task<PutDocumentResponse<T>> PutDocumentAsync<T>(
string collectionName,
string documentKey,
T doc,
PutDocumentQuery opts = null,
DocumentHeaderProperties headers = null
)
Function PutDocumentAsync(Of T) (
collectionName As String,
documentKey As String,
doc As T,
Optional opts As PutDocumentQuery = Nothing,
Optional headers As DocumentHeaderProperties = Nothing
) As Task(Of PutDocumentResponse(Of T))
generic<typename T>
Task<PutDocumentResponse<T>^>^ PutDocumentAsync(
String^ collectionName,
String^ documentKey,
T doc,
PutDocumentQuery^ opts = nullptr,
DocumentHeaderProperties^ headers = nullptr
)
abstract PutDocumentAsync :
collectionName : string *
documentKey : string *
doc : 'T *
?opts : PutDocumentQuery *
?headers : DocumentHeaderProperties
(* Defaults:
let _opts = defaultArg opts null
let _headers = defaultArg headers null
*)
-> Task<PutDocumentResponse<'T>>
Parameters
- collectionName
- Type: SystemString
- documentKey
- Type: SystemString
- doc
- Type: T
- opts (Optional)
- Type: ArangoDBNetStandard.DocumentApi.ModelsPutDocumentQuery
- headers (Optional)
- Type: ArangoDBNetStandard.DocumentApi.ModelsDocumentHeaderProperties
The DocumentHeaderProperties values.
Type Parameters
- T
Return Value
Type:
TaskPutDocumentResponseTSee Also