Ninja Database Pro
LoadAllByIndex<T> Method



KellermanSoftware.NinjaDatabasePro Namespace > NinjaDbPro Class : LoadAllByIndex<T> Method
The name of the index
If true it is sorted in ascending order
Load All Items sorted by the specified index. Only records that match the index value will be loaded.
Syntax
Public Function LoadAllByIndex(Of T As {Class, New})( _
   ByVal indexName As String, _
   ByVal ascending As Boolean _
) As List(Of T)
Dim instance As NinjaDbPro
Dim indexName As String
Dim ascending As Boolean
Dim value As List(Of T)
 
value = instance.LoadAllByIndex(Of T)(indexName, ascending)
public List<T> LoadAllByIndex<T>( 
   string indexName,
   bool ascending
)
where T: class, new()
public:
List<T^>^ LoadAllByIndexgeneric<typename T>
( 
   String^ indexName,
   bool ascending
) 
where T: ref class, gcnew()

Parameters

indexName
The name of the index
ascending
If true it is sorted in ascending order

Type Parameters

T

Return Value

A list of items
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NinjaDbPro Class
NinjaDbPro Members