วิธีการ DocsView.setFileIds
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตั้งค่ารหัสไฟล์ที่รวมอยู่ในมุมมอง
อย่าใช้การตั้งค่านี้ร่วมกับ setEnableDrives
หรือ setParent
การเรียกใช้ฟังก์ชันนี้จะลบล้างการเรียกใช้ setEnableDrives
หรือ setParent
ก่อนหน้านี้
ลายเซ็น
setFileIds(fileIds: string): DocsView;
รายละเอียด
ไม่บังคับ |
ไม่ |
รอบชิงชนะเลิศ |
ไม่ |
มีการป้องกัน |
ไม่ |
คงที่ |
ไม่ |
พารามิเตอร์
ชื่อ |
ประเภท |
ไม่บังคับ |
คำอธิบาย |
fileIds
|
string
|
ไม่
|
สตริงรหัสไฟล์ ใช้คอมมาคั่นระหว่างรหัสไฟล์หากตั้งค่ามากกว่า 1 รายการ หากคุณระบุรหัสไฟล์ของไฟล์ที่ผู้ใช้ไม่มีสิทธิ์เข้าถึง ระบบจะไม่รวมไฟล์นั้นไว้ในมุมมอง |
การคืนสินค้า
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)"]]