方法 DocsView.setFileIds
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
設定檢視畫面中包含的檔案 ID。
請勿將這項設定與 setEnableDrives
或 setParent
結合。對這個函式的呼叫會覆寫先前對 setEnableDrives
或 setParent
的呼叫。
簽名
setFileIds(fileIds: string): DocsView;
詳細資料
參數
名稱 |
類型 |
選用 |
說明 |
fileIds
|
string
|
否
|
檔案 ID 的字串。如果設定多個檔案 ID,請使用半形逗號分隔。如果您加入的檔案 ID 是使用者無法存取的檔案,系統就會將該檔案從檢視畫面中排除。 |
傳回
DocsView
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Method DocsView.setFileIds\n\nSets the file IDs included in the view.\n\nDon't combine this setting with `setEnableDrives` or `setParent`. Calls to this\nfunction override previous calls to `setEnableDrives` or `setParent`.\n\nSignature\n---------\n\n setFileIds(fileIds: string): DocsView;\n\nDetails\n-------\n\n| Optional | No |\n| Final | No |\n| Protected | No |\n| Static | No |\n|-----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|-----------|----------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `fileIds` | `string` | No | A string of file IDs. Use commas to separate file IDs if setting more than one. If you include the file ID of a file that the user doesn't have access to, the file is excluded from the view. |\n\nReturns\n-------\n\n[DocsView](./picker.docsview)"]]