Share via


SqlServerVectorStoreRecordCollection<TKey,TRecord>.UpsertAsync Method

Definition

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

Parameters

record
TRecord
cancellationToken
CancellationToken

Returns

Task<TKey>

Implements

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

Applies to