SqlServerVectorStoreRecordCollection<TKey,TRecord>.GetBatchAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.GetBatchAsync(System.Collections.Generic.IEnumerable{`0},Microsoft.Extensions.VectorData.GetRecordOptions,System.Threading.CancellationToken)
public System.Collections.Generic.IAsyncEnumerable<TRecord> GetBatchAsync(System.Collections.Generic.IEnumerable<TKey> keys, Microsoft.Extensions.VectorData.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBatchAsync : seq<'Key> * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Record>
override this.GetBatchAsync : seq<'Key> * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Record>
Public Function GetBatchAsync (keys As IEnumerable(Of TKey), Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TRecord)
Parameters
- keys
- IEnumerable<TKey>
- options
- Microsoft.Extensions.VectorData.GetRecordOptions
- cancellationToken
- CancellationToken
Returns
IAsyncEnumerable<TRecord>
Implements
Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.GetBatchAsync(System.Collections.Generic.IEnumerable{`0},Microsoft.Extensions.VectorData.GetRecordOptions,System.Threading.CancellationToken)