[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 UTC。"],[],[],null,["# Method DocsView.setEnableDrives\n\nShows shared drives and the files they contain. Before enabling, refer to\n[GoogleDrive API documentation for enabling shared drives](/workspace/drive/v3/web/enable-shareddrives).\n\nIf `true`, only shared drives are included in the view.\n\nDon't combine this setting with `setParent` or `setFileIds`. Calls to this\nfunction override previous calls to `setParent` or `setFileIds`.\n\nDon't combine this setting with `setOwnedByMe`. When `setEnableDrives(true)`\nand `setOwnedByMe(true)` are set, there are no results.\n\nDon't combine this setting with `setStarred`. When `setEnableDrives(true)` is\nset, `setStarred` is ignored.\n\nSignature\n---------\n\n setEnableDrives(enabled: 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| `enabled` | `boolean` | No | |\n\nReturns\n-------\n\n[DocsView](./picker.docsview)"]]