SessionBaseIndexT Method (String, Database) | 
 
            Gets an index of all objects of a certain type within a given database (attribute OnePerDatabase must be used)
            
 
    Namespace: 
   VelocityDb.Session
    Assembly:
   VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntaxpublic BTreeSetOidShort<T> Index<T>(
	string indexedByFieldName,
	Database inDatabase
)
Public Function Index(Of T) ( 
	indexedByFieldName As String,
	inDatabase As Database
) As BTreeSetOidShort(Of T)
public:
generic<typename T>
BTreeSetOidShort<T>^ Index(
	String^ indexedByFieldName, 
	Database^ inDatabase
)
member Index : 
        indexedByFieldName : string * 
        inDatabase : Database -> BTreeSetOidShort<'T> 
Parameters
- indexedByFieldName
 - Type: SystemString
The field used for sorting the indexed objects - inDatabase
 - Type: VelocityDbDatabase
Database containing index 
Type Parameters
- T
 - The type of object indexed
 
Return Value
Type: 
BTreeSetOidShortTThe index
See Also