QdrantVectorStoreRecordCollection<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.
Overloads
GetAsync(Guid, GetRecordOptions, CancellationToken) | |
GetAsync(UInt64, GetRecordOptions, CancellationToken) |
GetAsync(Guid, GetRecordOptions, CancellationToken)
Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found.
public virtual System.Threading.Tasks.Task<TRecord?> GetAsync(Guid key, Microsoft.Extensions.VectorData.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Guid * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record>
override this.GetAsync : Guid * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record>
Public Overridable Function GetAsync (key As Guid, Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TRecord)
Parameters
- key
- Guid
- options
- GetRecordOptions
- cancellationToken
- CancellationToken
Returns
Task<TRecord>
Implements
Applies to
GetAsync(UInt64, GetRecordOptions, CancellationToken)
Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found.
public virtual System.Threading.Tasks.Task<TRecord?> GetAsync(ulong key, Microsoft.Extensions.VectorData.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : uint64 * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record>
override this.GetAsync : uint64 * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record>
Public Overridable Function GetAsync (key As ULong, Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TRecord)
Parameters
- key
- UInt64
- options
- GetRecordOptions
- cancellationToken
- CancellationToken
Returns
Task<TRecord>