public void SetIndex(Session session, TableBase table) { try { this.index = table.CreateAndAddIndexStructure(session, null, this.SortOrder, this.SortDescending, this.SortNullsLast, false, false, false); } catch (Exception) { throw Error.RuntimeError(0xc9, "SortAndSlice"); } }