DocsView.setOwnedByMe 方法
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
根據文件是屬於使用者或與使用者共用,篩選出相關文件。
請勿將這項設定與 setEnableDrives
搭配使用。設定 setEnableDrives(true)
和 setOwnedByMe(true)
後,系統不會顯示任何結果。
如果未設定這個選項,畫面上會顯示所有文件,包括共用文件。
簽名
setOwnedByMe(me: boolean): DocsView;
詳細資料
參數
傳回
DocsView
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Method DocsView.setOwnedByMe\n\nFilters the documents based on whether they are owned by the user, or shared\nwith the user.\n\nDon't combine this setting with `setEnableDrives`. When `setEnableDrives(true)`\nand `setOwnedByMe(true)` are set, there are no results.\n\nIf you don't set this option, all documents, including shared documents, are\ndisplayed in the view.\n\nSignature\n---------\n\n setOwnedByMe(me: boolean): 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| `me` | `boolean` | No | |\n\nReturns\n-------\n\n[DocsView](./picker.docsview)"]]