Partager via


AzureAISearchVectorStoreRecordCollection<TRecord>.UpsertAsync Method

Definition

Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.UpsertAsync(`1,System.Threading.CancellationToken)
public virtual System.Threading.Tasks.Task<string> UpsertAsync(TRecord record, System.Threading.CancellationToken cancellationToken = default);
abstract member UpsertAsync : 'Record * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.UpsertAsync : 'Record * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function UpsertAsync (record As TRecord, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

record
TRecord
cancellationToken
CancellationToken

Returns

Implements

Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.UpsertAsync(`1,System.Threading.CancellationToken)

Applies to