SphinxConnector.NET 5.4.1
SphinxConnector.NET 5.4.1
SphinxConnector.NET 5
SphinxConnector.FluentApi
IFulltextQuery(TDocument) Interface
IFulltextQuery(TDocument) Methods
FirstAsync Method
FirstAsync Method
FirstAsync Method (CancellationToken)
IFulltextQuery
TDocument
FirstAsync Method
Asynchronously execute this query and return the first result.
Namespace:
SphinxConnector.FluentApi
Assembly:
SphinxConnector (in SphinxConnector.dll) Version: 5.4.1
Syntax
C#
VB
Copy
Task
<TDocument>
FirstAsync
()
Function
FirstAsync
As
Task
(
Of
TDocument)
Return Value
Type:
Task
TDocument
An instance of
TDocument
.
A task representing the asynchronous operation.
Exceptions
Exception
Condition
InvalidOperationException
The query returned no results.
FulltextException
Occurs when there is an error during the execution of the query.
Remarks
This is equivalent to calling Limit(0, 1).ToList()
See Also
Reference
IFulltextQuery
TDocument
Interface
FirstAsync Overload
SphinxConnector.FluentApi Namespace
Parts of the documentation are taken from the official
Sphinx documentation
by courtesy of
Sphinx Technologies Inc.
Copyright Dennis Gronewold
Send comments on this topic to
contact@sphinxconnector.net