Enum DataExecutionState
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資料執行狀態資料執行狀態的列舉。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
SpreadsheetApp.DataExecutionState.RUNNING
。
屬性
屬性 | 類型 | 說明 |
DATA_EXECUTION_STATE_UNSUPPORTED | Enum | Apps Script 不支援資料執行狀態。 |
RUNNING | Enum | 資料執行作業已開始並正在執行。 |
SUCCESS | Enum | 資料執行作業已完成並順利完成。 |
ERROR | Enum | 資料執行作業已完成,但發生錯誤。 |
NOT_STARTED | Enum | 資料執行作業尚未開始。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eDataExecutionState\u003c/code\u003e is an enumeration used to represent the different states of a data execution within Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eYou can access the \u003ccode\u003eDataExecutionState\u003c/code\u003e enum's properties through \u003ccode\u003eSpreadsheetApp.DataExecutionState\u003c/code\u003e, followed by the specific property like \u003ccode\u003eRUNNING\u003c/code\u003e or \u003ccode\u003eSUCCESS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe available states include \u003ccode\u003eDATA_EXECUTION_STATE_UNSUPPORTED\u003c/code\u003e, \u003ccode\u003eRUNNING\u003c/code\u003e, \u003ccode\u003eSUCCESS\u003c/code\u003e, \u003ccode\u003eERROR\u003c/code\u003e, and \u003ccode\u003eNOT_STARTED\u003c/code\u003e, each indicating a different phase or outcome of the data execution.\u003c/p\u003e\n"]]],["The `DataExecutionState` enumeration defines five states for data execution: `DATA_EXECUTION_STATE_UNSUPPORTED` (not supported), `RUNNING` (in progress), `SUCCESS` (completed successfully), `ERROR` (completed with errors), and `NOT_STARTED` (hasn't begun). These states indicate the current status of a data execution process. The enum properties can be accessed by calling the parent class, name and property like `SpreadsheetApp.DataExecutionState.RUNNING`.\n"],null,["# Enum DataExecutionState\n\nDataExecutionState\n\nAn enumeration of data execution states.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.DataExecutionState.RUNNING`. \n\n### Properties\n\n| Property | Type | Description |\n|------------------------------------|--------|---------------------------------------------------------|\n| `DATA_EXECUTION_STATE_UNSUPPORTED` | `Enum` | A data execution state is not supported in Apps Script. |\n| `RUNNING` | `Enum` | The data execution has started and is running. |\n| `SUCCESS` | `Enum` | The data execution is completed and successful. |\n| `ERROR` | `Enum` | The data execution is completed and has errors. |\n| `NOT_STARTED` | `Enum` | The data execution has not started. |"]]