Ninja Database Pro
GetIndex<T> Method



KellermanSoftware.NinjaDatabasePro Namespace > NinjaDbPro Class : GetIndex<T> Method
The type the index is associated with
The name of the index
Get an index by name
Syntax
Public Function GetIndex(Of T As {Class, New})( _
   ByVal indexName As String _
) As IIndex
Dim instance As NinjaDbPro
Dim indexName As String
Dim value As IIndex
 
value = instance.GetIndex(Of T)(indexName)
public IIndex GetIndex<T>( 
   string indexName
)
where T: class, new()
public:
IIndex^ GetIndexgeneric<typename T>
( 
   String^ indexName
) 
where T: ref class, gcnew()

Parameters

indexName
The name of the index

Type Parameters

T
The type the index is associated with

Return Value

The index or null if not found
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