方法 DocsView.setFileIds
设置视图中包含的文件 ID。
请勿将此设置与 setEnableDrives
或 setParent
结合使用。对此函数的调用会替换之前对 setEnableDrives
或 setParent
的调用。
签名
setFileIds(fileIds: string): DocsView;
详细信息
参数
名称 |
类型 |
可选 |
说明 |
fileIds
|
string
|
否
|
一串文件 ID。如果设置多个文件 ID,请使用英文逗号进行分隔。如果您添加了用户无权访问的文件的文件 ID,该文件将从视图中排除。 |
返回
DocsView
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-10。
[null,null,["最后更新时间 (UTC):2025-03-10。"],[[["`setFileIds` is a function that sets the file IDs to be included in a `DocsView`."],["The `setFileIds` function takes a mandatory string parameter `fileIds`, which can include multiple comma-separated file IDs."],["If a file ID specified in `fileIds` is not accessible to the user, that file will be excluded from the `DocsView`."],["The `setFileIds` function returns a `DocsView` object."]]],[]]