Count the results of the specified search.
Assembly: Epic.Query.Object
Declaration Syntax
C# |
public static uint Count<TItem>( this IDeferred<IEnumerable<TItem>> search )
Generic Template Parameters
- TItem
- The type of the results.
Parameters
- search (IDeferred<(Of <(<'IEnumerable<(Of <(<'TItem>)>)>>)>)>)
- A search for TItem.
Return Value
The number of results that the specified search will return.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IDeferred<(Of <(<'IEnumerable<(Of <(<'TItem>)>)>>)>)>. When you use instance method syntax to call this method, omit the first parameter.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | search
is nullNothingnullptr. |
DeferredEvaluationException<(Of <(<'TResult>)>)> | The deferred evaluation failed. |