DocsView.setOwnedByMe 方法
根據使用者擁有或與使用者共用的文件篩選文件。請勿將這項設定與 setIncludeFolders
合併。設定 setIncludeFolders(true)
時,系統會忽略 setOwnedByMe
。
如果未設定這個選項,畫面上會顯示所有文件,包括共用文件。
簽名
setOwnedByMe(me: boolean): DocsView;
詳細資料
參數
傳回
DocsView
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-08 (世界標準時間)。
[null,null,["上次更新時間:2024-11-08 (世界標準時間)。"],[[["Filters documents in the view based on ownership (owned by the user or shared with them)."],["When `setIncludeFolders(true)` is used, the `setOwnedByMe` setting is disregarded."],["If this option is not configured, all documents, including shared ones, will be displayed."],["This method is not optional, final, protected, or static."],["Accepts a boolean parameter (`me`) to determine the filtering behavior and returns a DocsView object."]]],["This method filters documents displayed in the view. Setting `setOwnedByMe(true)` shows only user-owned documents; otherwise, shared documents are also included. This setting is overridden if `setIncludeFolders(true)` is set. The method requires a boolean parameter (`me`) to determine the filtering and returns a `DocsView` object. If not specified, all documents are included.\n"]]