SqlSet.AnyAsync(CancellationToken) Method
Determines whether the set contains any elements.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Overloads
| Name | Description |
|---|---|
| AnyAsync(CancellationToken) | Determines whether the set contains any elements. |
| AnyAsync(OperatorStringHandler, CancellationToken) | Determines whether any element of the set satisfies a condition. |
| AnyAsync(String, CancellationToken) | Determines whether any element of the set satisfies a condition. |
Syntax
public ValueTask<bool> AnyAsync(
CancellationToken cancellationToken = default
)
Parameters
cancellationToken CancellationToken (Optional)
The CancellationToken to monitor for cancellation requests. The default is None.
Return Value
ValueTask<Boolean>
true if the sequence contains any elements; otherwise, false.