Retrieves the collection of all objects of a given type.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax IRavenQueryable<T> List<T>()
Function List(Of T) As IRavenQueryable(Of T)
generic<typename T>
IRavenQueryable<T>^ List()
abstract List : unit -> IRavenQueryable<'T>
Type Parameters
- T
- Type of object to retrieve
Return Value
Type:
IRavenQueryableTCollection of objects of given type. Deferred execution.
Remarks The actual execution of a query is deferred; therefore, additional queries can apply to the result and be executed on the content-store side.
In order for the query to be executed on content-store side, additional queries cannot use any of the object's methods, only fields and direct properties.
If content store–side execution is not required, you should first convert the result to an array using the "ToArray()" method.
See Also