メソッド DocsView.setFileIds
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ビューに含まれるファイル ID を設定します。
この設定を setEnableDrives
または setParent
と組み合わせないでください。この関数の呼び出しは、以前の setEnableDrives
または setParent
の呼び出しをオーバーライドします。
署名
setFileIds(fileIds: string): DocsView;
詳細
省略可 |
いいえ |
決勝 |
いいえ |
保護 |
いいえ |
静的 |
いいえ |
パラメータ
名前 |
Type |
省略可能 |
説明 |
fileIds
|
string
|
×
|
ファイル ID の文字列。複数のファイル ID を設定する場合は、カンマで区切ってください。ユーザーがアクセス権のないファイルのファイル ID を含めると、そのファイルはビューから除外されます。 |
戻り値
DocsView
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],[],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)"]]