Delete (DROP) table Index from database
Namespace: Wiker.WIDatabaseAssembly:
Syntax
C# |
---|
public bool Delete( string indexName ) |
Visual Basic |
---|
Public Function Delete ( _ indexName As String _ ) As Boolean |
Visual C++ |
---|
public: bool Delete( String^ indexName ) |
Parameters
- indexName
- Type: System..::..String
Index name to be deleted
Return Value
bool
Examples

/* Create new instance of WIDatabase */ WIDB = new WIDatabase(DBInfo); /* Delete Index 'IdxFirst' from table 'Persons' */ WIDB.Index.Table("Persons"); if (!WIDB.Index.Delete("IdxFirst")) { MessageBox.Show(string.Format("Failed To Delete Index IdxFirst\n{0} - {1}", WIDB.LastError.ToString(), WIDB.LastErrorMessage)); return(false); }