存取及修改現有的重新整理時間表。如要取得所有重新整理時間表,請參閱 Spreadsheet.getDataSourceRefreshSchedules()。
請只將這個類別用於與資料庫連結的資料。
方法
| 方法 | 傳回類型 | 簡短說明 | 
|---|---|---|
| get | Data | 取得重新整理時間表頻率,指定重新整理的頻率和時間。 | 
| get | Data | 取得此重新整理時間表的範圍。 | 
| get | Time | 取得下次執行此重新整理時間表的時間範圍。 | 
| is | Boolean | 判斷是否啟用這項重新整理時間表。 | 
內容詳盡的說明文件
get
取得重新整理時間表頻率,指定重新整理的頻率和時間。
回攻員
Data:重新整理排程頻率。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
- 
https://www.googleapis.com/auth/spreadsheets.currentonly
- 
https://www.googleapis.com/auth/spreadsheets
get
取得此重新整理時間表的範圍。
回攻員
Data:重新整理範圍。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
- 
https://www.googleapis.com/auth/spreadsheets.currentonly
- 
https://www.googleapis.com/auth/spreadsheets
get
取得下次執行此重新整理時間表的時間範圍。只有在啟用此重新整理時間表時才適用。
回攻員
Time:下次執行作業的時間範圍。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
- 
https://www.googleapis.com/auth/spreadsheets.currentonly
- 
https://www.googleapis.com/auth/spreadsheets
is
判斷是否啟用這項重新整理時間表。
回攻員
Boolean:是否啟用這項重新整理時間表。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
- 
https://www.googleapis.com/auth/spreadsheets.currentonly
- 
https://www.googleapis.com/auth/spreadsheets