Share via


SqlServerVectorStoreRecordCollection<TKey,TRecord>.GetAsync Method

Definition

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

Parameters

key
TKey
options
Microsoft.Extensions.VectorData.GetRecordOptions
cancellationToken
CancellationToken

Returns

Task<TRecord>

Implements

Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.GetAsync(`0,Microsoft.Extensions.VectorData.GetRecordOptions,System.Threading.CancellationToken)

Applies to