IUserSessionCountT Method
|
Note: This API is now obsolete.
Gets the count of query results
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax[ObsoleteAttribute("Use RavenQueryable.TotalCount, wrapper not needed amymore")]
int Count<T>(
IEnumerable<T> queryResults
)
<ObsoleteAttribute("Use RavenQueryable.TotalCount, wrapper not needed amymore")>
Function Count(Of T) (
queryResults As IEnumerable(Of T)
) As Integer[ObsoleteAttribute(L"Use RavenQueryable.TotalCount, wrapper not needed amymore")]
generic<typename T>
int Count(
IEnumerable<T>^ queryResults
)
[<ObsoleteAttribute("Use RavenQueryable.TotalCount, wrapper not needed amymore")>]
abstract Count :
queryResults : IEnumerable<'T> -> int Parameters
- queryResults IEnumerableT
- Collection of query results
Type Parameters
- T
- Entity type in the query results
Return Value
Int32Count of results.
Remarks
This wrapper only works if queryResults is an instance of IRavenQueryable, which already has queryResults.TotalCount.
The preferred method is to simply use the TotalCount property of the IRavenQueryable instead of this deprecated wrapper.
See Also