SqlServerVectorStoreRecordCollection<TKey,TRecord>.GetAsync 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.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)